Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Generated models and request builders #2490

Merged
merged 3 commits into from
May 16, 2024
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: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project does adheres to [Semantic Versioning](https://semver.org/spec/v

## [Unreleased]

## [5.53.0] - 2024-05-16

- Latest metadata updates from 14th May 2024.

## [5.52.0] - 2024-05-08

- Latest metadata updates from 7th May 2024.
Expand Down
13 changes: 7 additions & 6 deletions src/Microsoft.Graph/Generated/Admin/AdminRequestBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@
using System.Threading.Tasks;
using System.Threading;
using System;
namespace Microsoft.Graph.Admin {
namespace Microsoft.Graph.Admin
{
/// <summary>
/// Provides operations to manage the admin singleton.
/// </summary>
public class AdminRequestBuilder : BaseRequestBuilder
public class AdminRequestBuilder : BaseRequestBuilder
{
/// <summary>Provides operations to manage the edge property of the microsoft.graph.admin entity.</summary>
public EdgeRequestBuilder Edge
Expand Down Expand Up @@ -80,7 +81,7 @@ public AdminRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base
var requestInfo = ToGetRequestInformation(requestConfiguration);
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
{
{"XXX", ODataError.CreateFromDiscriminatorValue},
{ "XXX", ODataError.CreateFromDiscriminatorValue },
};
return await RequestAdapter.SendAsync<Microsoft.Graph.Models.Admin>(requestInfo, Microsoft.Graph.Models.Admin.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
Expand All @@ -105,7 +106,7 @@ public AdminRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base
var requestInfo = ToPatchRequestInformation(body, requestConfiguration);
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
{
{"XXX", ODataError.CreateFromDiscriminatorValue},
{ "XXX", ODataError.CreateFromDiscriminatorValue },
};
return await RequestAdapter.SendAsync<Microsoft.Graph.Models.Admin>(requestInfo, Microsoft.Graph.Models.Admin.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
Expand Down Expand Up @@ -189,14 +190,14 @@ public class AdminRequestBuilderGetQueryParameters
/// Configuration for the request such as headers, query parameters, and middleware options.
/// </summary>
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
public class AdminRequestBuilderGetRequestConfiguration : RequestConfiguration<AdminRequestBuilderGetQueryParameters>
public class AdminRequestBuilderGetRequestConfiguration : RequestConfiguration<AdminRequestBuilderGetQueryParameters>
{
}
/// <summary>
/// Configuration for the request such as headers, query parameters, and middleware options.
/// </summary>
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
public class AdminRequestBuilderPatchRequestConfiguration : RequestConfiguration<DefaultQueryParameters>
public class AdminRequestBuilderPatchRequestConfiguration : RequestConfiguration<DefaultQueryParameters>
{
}
}
Expand Down
17 changes: 9 additions & 8 deletions src/Microsoft.Graph/Generated/Admin/Edge/EdgeRequestBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@
using System.Threading.Tasks;
using System.Threading;
using System;
namespace Microsoft.Graph.Admin.Edge {
namespace Microsoft.Graph.Admin.Edge
{
/// <summary>
/// Provides operations to manage the edge property of the microsoft.graph.admin entity.
/// </summary>
public class EdgeRequestBuilder : BaseRequestBuilder
public class EdgeRequestBuilder : BaseRequestBuilder
{
/// <summary>Provides operations to manage the internetExplorerMode property of the microsoft.graph.edge entity.</summary>
public InternetExplorerModeRequestBuilder InternetExplorerMode
Expand Down Expand Up @@ -55,7 +56,7 @@ public async Task DeleteAsync(Action<RequestConfiguration<DefaultQueryParameters
var requestInfo = ToDeleteRequestInformation(requestConfiguration);
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
{
{"XXX", ODataError.CreateFromDiscriminatorValue},
{ "XXX", ODataError.CreateFromDiscriminatorValue },
};
await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
}
Expand All @@ -78,7 +79,7 @@ public async Task DeleteAsync(Action<RequestConfiguration<DefaultQueryParameters
var requestInfo = ToGetRequestInformation(requestConfiguration);
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
{
{"XXX", ODataError.CreateFromDiscriminatorValue},
{ "XXX", ODataError.CreateFromDiscriminatorValue },
};
return await RequestAdapter.SendAsync<Microsoft.Graph.Models.Edge>(requestInfo, Microsoft.Graph.Models.Edge.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
Expand All @@ -103,7 +104,7 @@ public async Task DeleteAsync(Action<RequestConfiguration<DefaultQueryParameters
var requestInfo = ToPatchRequestInformation(body, requestConfiguration);
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
{
{"XXX", ODataError.CreateFromDiscriminatorValue},
{ "XXX", ODataError.CreateFromDiscriminatorValue },
};
return await RequestAdapter.SendAsync<Microsoft.Graph.Models.Edge>(requestInfo, Microsoft.Graph.Models.Edge.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
Expand Down Expand Up @@ -180,7 +181,7 @@ public EdgeRequestBuilder WithUrl(string rawUrl)
/// Configuration for the request such as headers, query parameters, and middleware options.
/// </summary>
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
public class EdgeRequestBuilderDeleteRequestConfiguration : RequestConfiguration<DefaultQueryParameters>
public class EdgeRequestBuilderDeleteRequestConfiguration : RequestConfiguration<DefaultQueryParameters>
{
}
/// <summary>
Expand Down Expand Up @@ -213,14 +214,14 @@ public class EdgeRequestBuilderGetQueryParameters
/// Configuration for the request such as headers, query parameters, and middleware options.
/// </summary>
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
public class EdgeRequestBuilderGetRequestConfiguration : RequestConfiguration<EdgeRequestBuilderGetQueryParameters>
public class EdgeRequestBuilderGetRequestConfiguration : RequestConfiguration<EdgeRequestBuilderGetQueryParameters>
{
}
/// <summary>
/// Configuration for the request such as headers, query parameters, and middleware options.
/// </summary>
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
public class EdgeRequestBuilderPatchRequestConfiguration : RequestConfiguration<DefaultQueryParameters>
public class EdgeRequestBuilderPatchRequestConfiguration : RequestConfiguration<DefaultQueryParameters>
{
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@
using System.Threading.Tasks;
using System.Threading;
using System;
namespace Microsoft.Graph.Admin.Edge.InternetExplorerMode {
namespace Microsoft.Graph.Admin.Edge.InternetExplorerMode
{
/// <summary>
/// Provides operations to manage the internetExplorerMode property of the microsoft.graph.edge entity.
/// </summary>
public class InternetExplorerModeRequestBuilder : BaseRequestBuilder
public class InternetExplorerModeRequestBuilder : BaseRequestBuilder
{
/// <summary>Provides operations to manage the siteLists property of the microsoft.graph.internetExplorerMode entity.</summary>
public SiteListsRequestBuilder SiteLists
Expand Down Expand Up @@ -55,7 +56,7 @@ public async Task DeleteAsync(Action<RequestConfiguration<DefaultQueryParameters
var requestInfo = ToDeleteRequestInformation(requestConfiguration);
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
{
{"XXX", ODataError.CreateFromDiscriminatorValue},
{ "XXX", ODataError.CreateFromDiscriminatorValue },
};
await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
}
Expand All @@ -78,7 +79,7 @@ public async Task DeleteAsync(Action<RequestConfiguration<DefaultQueryParameters
var requestInfo = ToGetRequestInformation(requestConfiguration);
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
{
{"XXX", ODataError.CreateFromDiscriminatorValue},
{ "XXX", ODataError.CreateFromDiscriminatorValue },
};
return await RequestAdapter.SendAsync<Microsoft.Graph.Models.InternetExplorerMode>(requestInfo, Microsoft.Graph.Models.InternetExplorerMode.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
Expand All @@ -103,7 +104,7 @@ public async Task DeleteAsync(Action<RequestConfiguration<DefaultQueryParameters
var requestInfo = ToPatchRequestInformation(body, requestConfiguration);
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
{
{"XXX", ODataError.CreateFromDiscriminatorValue},
{ "XXX", ODataError.CreateFromDiscriminatorValue },
};
return await RequestAdapter.SendAsync<Microsoft.Graph.Models.InternetExplorerMode>(requestInfo, Microsoft.Graph.Models.InternetExplorerMode.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
Expand Down Expand Up @@ -180,7 +181,7 @@ public InternetExplorerModeRequestBuilder WithUrl(string rawUrl)
/// Configuration for the request such as headers, query parameters, and middleware options.
/// </summary>
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
public class InternetExplorerModeRequestBuilderDeleteRequestConfiguration : RequestConfiguration<DefaultQueryParameters>
public class InternetExplorerModeRequestBuilderDeleteRequestConfiguration : RequestConfiguration<DefaultQueryParameters>
{
}
/// <summary>
Expand Down Expand Up @@ -213,14 +214,14 @@ public class InternetExplorerModeRequestBuilderGetQueryParameters
/// Configuration for the request such as headers, query parameters, and middleware options.
/// </summary>
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
public class InternetExplorerModeRequestBuilderGetRequestConfiguration : RequestConfiguration<InternetExplorerModeRequestBuilderGetQueryParameters>
public class InternetExplorerModeRequestBuilderGetRequestConfiguration : RequestConfiguration<InternetExplorerModeRequestBuilderGetQueryParameters>
{
}
/// <summary>
/// Configuration for the request such as headers, query parameters, and middleware options.
/// </summary>
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
public class InternetExplorerModeRequestBuilderPatchRequestConfiguration : RequestConfiguration<DefaultQueryParameters>
public class InternetExplorerModeRequestBuilderPatchRequestConfiguration : RequestConfiguration<DefaultQueryParameters>
{
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@
using System.Threading.Tasks;
using System.Threading;
using System;
namespace Microsoft.Graph.Admin.Edge.InternetExplorerMode.SiteLists.Count {
namespace Microsoft.Graph.Admin.Edge.InternetExplorerMode.SiteLists.Count
{
/// <summary>
/// Provides operations to count the resources in the collection.
/// </summary>
public class CountRequestBuilder : BaseRequestBuilder
public class CountRequestBuilder : BaseRequestBuilder
{
/// <summary>
/// Instantiates a new <see cref="CountRequestBuilder"/> and sets the default values.
Expand Down Expand Up @@ -49,7 +50,7 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base
var requestInfo = ToGetRequestInformation(requestConfiguration);
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
{
{"XXX", ODataError.CreateFromDiscriminatorValue},
{ "XXX", ODataError.CreateFromDiscriminatorValue },
};
return await RequestAdapter.SendPrimitiveAsync<int?>(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
}
Expand Down Expand Up @@ -111,7 +112,7 @@ public class CountRequestBuilderGetQueryParameters
/// Configuration for the request such as headers, query parameters, and middleware options.
/// </summary>
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
public class CountRequestBuilderGetRequestConfiguration : RequestConfiguration<CountRequestBuilderGetQueryParameters>
public class CountRequestBuilderGetRequestConfiguration : RequestConfiguration<CountRequestBuilderGetQueryParameters>
{
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@
using System.Threading.Tasks;
using System.Threading;
using System;
namespace Microsoft.Graph.Admin.Edge.InternetExplorerMode.SiteLists.Item {
namespace Microsoft.Graph.Admin.Edge.InternetExplorerMode.SiteLists.Item
{
/// <summary>
/// Provides operations to manage the siteLists property of the microsoft.graph.internetExplorerMode entity.
/// </summary>
public class BrowserSiteListItemRequestBuilder : BaseRequestBuilder
public class BrowserSiteListItemRequestBuilder : BaseRequestBuilder
{
/// <summary>Provides operations to call the publish method.</summary>
public PublishRequestBuilder Publish
Expand Down Expand Up @@ -68,7 +69,7 @@ public async Task DeleteAsync(Action<RequestConfiguration<DefaultQueryParameters
var requestInfo = ToDeleteRequestInformation(requestConfiguration);
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
{
{"XXX", ODataError.CreateFromDiscriminatorValue},
{ "XXX", ODataError.CreateFromDiscriminatorValue },
};
await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
}
Expand All @@ -92,7 +93,7 @@ public async Task<BrowserSiteList> GetAsync(Action<RequestConfiguration<BrowserS
var requestInfo = ToGetRequestInformation(requestConfiguration);
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
{
{"XXX", ODataError.CreateFromDiscriminatorValue},
{ "XXX", ODataError.CreateFromDiscriminatorValue },
};
return await RequestAdapter.SendAsync<BrowserSiteList>(requestInfo, BrowserSiteList.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
Expand All @@ -118,7 +119,7 @@ public async Task<BrowserSiteList> PatchAsync(BrowserSiteList body, Action<Reque
var requestInfo = ToPatchRequestInformation(body, requestConfiguration);
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
{
{"XXX", ODataError.CreateFromDiscriminatorValue},
{ "XXX", ODataError.CreateFromDiscriminatorValue },
};
return await RequestAdapter.SendAsync<BrowserSiteList>(requestInfo, BrowserSiteList.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
Expand Down Expand Up @@ -195,7 +196,7 @@ public BrowserSiteListItemRequestBuilder WithUrl(string rawUrl)
/// Configuration for the request such as headers, query parameters, and middleware options.
/// </summary>
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
public class BrowserSiteListItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration<DefaultQueryParameters>
public class BrowserSiteListItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration<DefaultQueryParameters>
{
}
/// <summary>
Expand Down Expand Up @@ -228,14 +229,14 @@ public class BrowserSiteListItemRequestBuilderGetQueryParameters
/// Configuration for the request such as headers, query parameters, and middleware options.
/// </summary>
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
public class BrowserSiteListItemRequestBuilderGetRequestConfiguration : RequestConfiguration<BrowserSiteListItemRequestBuilderGetQueryParameters>
public class BrowserSiteListItemRequestBuilderGetRequestConfiguration : RequestConfiguration<BrowserSiteListItemRequestBuilderGetQueryParameters>
{
}
/// <summary>
/// Configuration for the request such as headers, query parameters, and middleware options.
/// </summary>
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
public class BrowserSiteListItemRequestBuilderPatchRequestConfiguration : RequestConfiguration<DefaultQueryParameters>
public class BrowserSiteListItemRequestBuilderPatchRequestConfiguration : RequestConfiguration<DefaultQueryParameters>
{
}
}
Expand Down
Loading