Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
4 changes: 2 additions & 2 deletions src/Microsoft.Graph/Generated/Admin/AdminRequestBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public AdminRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base
public async Task<global::Microsoft.Graph.Models.Admin> PatchAsync(global::Microsoft.Graph.Models.Admin body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
var requestInfo = ToPatchRequestInformation(body, requestConfiguration);
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
{
Expand Down Expand Up @@ -152,7 +152,7 @@ public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.Mode
public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.Models.Admin body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters);
requestInfo.Configure(requestConfiguration);
requestInfo.Headers.TryAdd("Accept", "application/json");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public async Task DeleteAsync(Action<RequestConfiguration<DefaultQueryParameters
public async Task<global::Microsoft.Graph.Models.Edge> PatchAsync(global::Microsoft.Graph.Models.Edge body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
var requestInfo = ToPatchRequestInformation(body, requestConfiguration);
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
{
Expand Down Expand Up @@ -163,7 +163,7 @@ public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.Mode
public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.Models.Edge body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters);
requestInfo.Configure(requestConfiguration);
requestInfo.Headers.TryAdd("Accept", "application/json");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public async Task DeleteAsync(Action<RequestConfiguration<DefaultQueryParameters
public async Task<global::Microsoft.Graph.Models.InternetExplorerMode> PatchAsync(global::Microsoft.Graph.Models.InternetExplorerMode body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
var requestInfo = ToPatchRequestInformation(body, requestConfiguration);
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
{
Expand Down Expand Up @@ -163,7 +163,7 @@ public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.Mode
public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.Models.InternetExplorerMode body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters);
requestInfo.Configure(requestConfiguration);
requestInfo.Headers.TryAdd("Accept", "application/json");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public async Task DeleteAsync(Action<RequestConfiguration<DefaultQueryParameters
public async Task<global::Microsoft.Graph.Models.BrowserSiteList> PatchAsync(global::Microsoft.Graph.Models.BrowserSiteList body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
var requestInfo = ToPatchRequestInformation(body, requestConfiguration);
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
{
Expand Down Expand Up @@ -178,7 +178,7 @@ public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.Mode
public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.Models.BrowserSiteList body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters);
requestInfo.Configure(requestConfiguration);
requestInfo.Headers.TryAdd("Accept", "application/json");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public PublishPostRequestBody()
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
public static global::Microsoft.Graph.Admin.Edge.InternetExplorerMode.SiteLists.Item.Publish.PublishPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode));
return new global::Microsoft.Graph.Admin.Edge.InternetExplorerMode.SiteLists.Item.Publish.PublishPostRequestBody();
}
/// <summary>
Expand All @@ -107,7 +107,7 @@ public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
/// <param name="writer">Serialization writer to use to serialize this model</param>
public virtual void Serialize(ISerializationWriter writer)
{
_ = writer ?? throw new ArgumentNullException(nameof(writer));
if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
writer.WriteStringValue("revision", Revision);
writer.WriteCollectionOfObjectValues<global::Microsoft.Graph.Models.BrowserSharedCookie>("sharedCookies", SharedCookies);
writer.WriteCollectionOfObjectValues<global::Microsoft.Graph.Models.BrowserSite>("sites", Sites);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public PublishRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba
public async Task<global::Microsoft.Graph.Models.BrowserSiteList> PostAsync(global::Microsoft.Graph.Admin.Edge.InternetExplorerMode.SiteLists.Item.Publish.PublishPostRequestBody body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
var requestInfo = ToPostRequestInformation(body, requestConfiguration);
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
{
Expand All @@ -74,7 +74,7 @@ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Admin
public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Admin.Edge.InternetExplorerMode.SiteLists.Item.Publish.PublishPostRequestBody body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters);
requestInfo.Configure(requestConfiguration);
requestInfo.Headers.TryAdd("Accept", "application/json");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public async Task DeleteAsync(Action<RequestConfiguration<DefaultQueryParameters
public async Task<global::Microsoft.Graph.Models.BrowserSharedCookie> PatchAsync(global::Microsoft.Graph.Models.BrowserSharedCookie body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
var requestInfo = ToPatchRequestInformation(body, requestConfiguration);
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
{
Expand Down Expand Up @@ -160,7 +160,7 @@ public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.Mode
public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.Models.BrowserSharedCookie body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters);
requestInfo.Configure(requestConfiguration);
requestInfo.Headers.TryAdd("Accept", "application/json");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public SharedCookiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter
public async Task<global::Microsoft.Graph.Models.BrowserSharedCookie> PostAsync(global::Microsoft.Graph.Models.BrowserSharedCookie body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
var requestInfo = ToPostRequestInformation(body, requestConfiguration);
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
{
Expand Down Expand Up @@ -137,7 +137,7 @@ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Model
public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Models.BrowserSharedCookie body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters);
requestInfo.Configure(requestConfiguration);
requestInfo.Headers.TryAdd("Accept", "application/json");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public async Task DeleteAsync(Action<RequestConfiguration<DefaultQueryParameters
public async Task<global::Microsoft.Graph.Models.BrowserSite> PatchAsync(global::Microsoft.Graph.Models.BrowserSite body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
var requestInfo = ToPatchRequestInformation(body, requestConfiguration);
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
{
Expand Down Expand Up @@ -160,7 +160,7 @@ public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.Mode
public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.Models.BrowserSite body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters);
requestInfo.Configure(requestConfiguration);
requestInfo.Headers.TryAdd("Accept", "application/json");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public SitesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base
public async Task<global::Microsoft.Graph.Models.BrowserSite> PostAsync(global::Microsoft.Graph.Models.BrowserSite body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
var requestInfo = ToPostRequestInformation(body, requestConfiguration);
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
{
Expand Down Expand Up @@ -137,7 +137,7 @@ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Model
public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Models.BrowserSite body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters);
requestInfo.Configure(requestConfiguration);
requestInfo.Headers.TryAdd("Accept", "application/json");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public SiteListsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) :
public async Task<global::Microsoft.Graph.Models.BrowserSiteList> PostAsync(global::Microsoft.Graph.Models.BrowserSiteList body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
var requestInfo = ToPostRequestInformation(body, requestConfiguration);
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
{
Expand Down Expand Up @@ -137,7 +137,7 @@ public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Model
public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.Models.BrowserSiteList body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters);
requestInfo.Configure(requestConfiguration);
requestInfo.Headers.TryAdd("Accept", "application/json");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public async Task DeleteAsync(Action<RequestConfiguration<DefaultQueryParameters
public async Task<global::Microsoft.Graph.Models.M365AppsInstallationOptions> PatchAsync(global::Microsoft.Graph.Models.M365AppsInstallationOptions body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
var requestInfo = ToPatchRequestInformation(body, requestConfiguration);
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
{
Expand Down Expand Up @@ -159,7 +159,7 @@ public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.Mode
public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.Models.M365AppsInstallationOptions body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters);
requestInfo.Configure(requestConfiguration);
requestInfo.Headers.TryAdd("Accept", "application/json");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public async Task DeleteAsync(Action<RequestConfiguration<DefaultQueryParameters
public async Task<global::Microsoft.Graph.Models.AdminMicrosoft365Apps> PatchAsync(global::Microsoft.Graph.Models.AdminMicrosoft365Apps body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
var requestInfo = ToPatchRequestInformation(body, requestConfiguration);
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
{
Expand Down Expand Up @@ -163,7 +163,7 @@ public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.Mode
public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.Models.AdminMicrosoft365Apps body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters);
requestInfo.Configure(requestConfiguration);
requestInfo.Headers.TryAdd("Accept", "application/json");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public async Task DeleteAsync(Action<RequestConfiguration<DefaultQueryParameters
public async Task<global::Microsoft.Graph.Models.InsightsSettings> PatchAsync(global::Microsoft.Graph.Models.InsightsSettings body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
var requestInfo = ToPatchRequestInformation(body, requestConfiguration);
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
{
Expand Down Expand Up @@ -159,7 +159,7 @@ public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.Mode
public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.Models.InsightsSettings body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters);
requestInfo.Configure(requestConfiguration);
requestInfo.Headers.TryAdd("Accept", "application/json");
Expand Down
Loading
Loading