Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit 4319915

Browse files
authored
feat(generation): update request builders and models (#473)
Update generated files with build 149875
1 parent 7ccbee9 commit 4319915

File tree

12,688 files changed

+97024
-48968
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

12,688 files changed

+97024
-48968
lines changed

src/generated/Admin/AdminRequestBuilder.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,12 @@
1919
using System.Threading.Tasks;
2020
using System.Threading;
2121
using System;
22-
namespace ApiSdk.Admin {
22+
namespace ApiSdk.Admin
23+
{
2324
/// <summary>
2425
/// Provides operations to manage the admin singleton.
2526
/// </summary>
26-
public class AdminRequestBuilder : BaseCliRequestBuilder
27+
public class AdminRequestBuilder : BaseCliRequestBuilder
2728
{
2829
/// <summary>
2930
/// Provides operations to manage the edge property of the microsoft.graph.admin entity.

src/generated/Admin/Edge/EdgeRequestBuilder.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@
1515
using System.Threading.Tasks;
1616
using System.Threading;
1717
using System;
18-
namespace ApiSdk.Admin.Edge {
18+
namespace ApiSdk.Admin.Edge
19+
{
1920
/// <summary>
2021
/// Provides operations to manage the edge property of the microsoft.graph.admin entity.
2122
/// </summary>
22-
public class EdgeRequestBuilder : BaseCliRequestBuilder
23+
public class EdgeRequestBuilder : BaseCliRequestBuilder
2324
{
2425
/// <summary>
2526
/// Delete navigation property edge for admin

src/generated/Admin/Edge/InternetExplorerMode/InternetExplorerModeRequestBuilder.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@
1515
using System.Threading.Tasks;
1616
using System.Threading;
1717
using System;
18-
namespace ApiSdk.Admin.Edge.InternetExplorerMode {
18+
namespace ApiSdk.Admin.Edge.InternetExplorerMode
19+
{
1920
/// <summary>
2021
/// Provides operations to manage the internetExplorerMode property of the microsoft.graph.edge entity.
2122
/// </summary>
22-
public class InternetExplorerModeRequestBuilder : BaseCliRequestBuilder
23+
public class InternetExplorerModeRequestBuilder : BaseCliRequestBuilder
2324
{
2425
/// <summary>
2526
/// Delete navigation property internetExplorerMode for admin

src/generated/Admin/Edge/InternetExplorerMode/SiteLists/Count/CountRequestBuilder.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@
1313
using System.Threading.Tasks;
1414
using System.Threading;
1515
using System;
16-
namespace ApiSdk.Admin.Edge.InternetExplorerMode.SiteLists.Count {
16+
namespace ApiSdk.Admin.Edge.InternetExplorerMode.SiteLists.Count
17+
{
1718
/// <summary>
1819
/// Provides operations to count the resources in the collection.
1920
/// </summary>
20-
public class CountRequestBuilder : BaseCliRequestBuilder
21+
public class CountRequestBuilder : BaseCliRequestBuilder
2122
{
2223
/// <summary>
2324
/// Get the number of the resource

src/generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/BrowserSiteListItemRequestBuilder.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@
1717
using System.Threading.Tasks;
1818
using System.Threading;
1919
using System;
20-
namespace ApiSdk.Admin.Edge.InternetExplorerMode.SiteLists.Item {
20+
namespace ApiSdk.Admin.Edge.InternetExplorerMode.SiteLists.Item
21+
{
2122
/// <summary>
2223
/// Provides operations to manage the siteLists property of the microsoft.graph.internetExplorerMode entity.
2324
/// </summary>
24-
public class BrowserSiteListItemRequestBuilder : BaseCliRequestBuilder
25+
public class BrowserSiteListItemRequestBuilder : BaseCliRequestBuilder
2526
{
2627
/// <summary>
2728
/// Delete a browserSiteList object.

src/generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Publish/PublishPostRequestBody.cs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@
55
using System.IO;
66
using System.Linq;
77
using System;
8-
namespace ApiSdk.Admin.Edge.InternetExplorerMode.SiteLists.Item.Publish {
9-
public class PublishPostRequestBody : IAdditionalDataHolder, IParsable
8+
namespace ApiSdk.Admin.Edge.InternetExplorerMode.SiteLists.Item.Publish
9+
{
10+
#pragma warning disable CS1591
11+
public class PublishPostRequestBody : IAdditionalDataHolder, IParsable
12+
#pragma warning restore CS1591
1013
{
1114
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
1215
public IDictionary<string, object> AdditionalData { get; set; }
@@ -59,9 +62,9 @@ public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
5962
{
6063
return new Dictionary<string, Action<IParseNode>>
6164
{
62-
{"revision", n => { Revision = n.GetStringValue(); } },
63-
{"sharedCookies", n => { SharedCookies = n.GetCollectionOfObjectValues<BrowserSharedCookie>(BrowserSharedCookie.CreateFromDiscriminatorValue)?.ToList(); } },
64-
{"sites", n => { Sites = n.GetCollectionOfObjectValues<BrowserSite>(BrowserSite.CreateFromDiscriminatorValue)?.ToList(); } },
65+
{ "revision", n => { Revision = n.GetStringValue(); } },
66+
{ "sharedCookies", n => { SharedCookies = n.GetCollectionOfObjectValues<BrowserSharedCookie>(BrowserSharedCookie.CreateFromDiscriminatorValue)?.ToList(); } },
67+
{ "sites", n => { Sites = n.GetCollectionOfObjectValues<BrowserSite>(BrowserSite.CreateFromDiscriminatorValue)?.ToList(); } },
6568
};
6669
}
6770
/// <summary>

src/generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/Publish/PublishRequestBuilder.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,21 @@
1414
using System.Threading.Tasks;
1515
using System.Threading;
1616
using System;
17-
namespace ApiSdk.Admin.Edge.InternetExplorerMode.SiteLists.Item.Publish {
17+
namespace ApiSdk.Admin.Edge.InternetExplorerMode.SiteLists.Item.Publish
18+
{
1819
/// <summary>
1920
/// Provides operations to call the publish method.
2021
/// </summary>
21-
public class PublishRequestBuilder : BaseCliRequestBuilder
22+
public class PublishRequestBuilder : BaseCliRequestBuilder
2223
{
2324
/// <summary>
2425
/// Publish the specified browserSiteList for devices to download.
25-
/// Find more info here <see href="https://learn.microsoft.com/graph/api/browsersitelist-publish?view=graph-rest-1.0" />
2626
/// </summary>
2727
/// <returns>A <see cref="Command"/></returns>
2828
public Command BuildPostCommand()
2929
{
3030
var command = new Command("post");
31-
command.Description = "Publish the specified browserSiteList for devices to download.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/browsersitelist-publish?view=graph-rest-1.0";
31+
command.Description = "Publish the specified browserSiteList for devices to download.";
3232
var browserSiteListIdOption = new Option<string>("--browser-site-list-id", description: "The unique identifier of browserSiteList") {
3333
};
3434
browserSiteListIdOption.IsRequired = true;

src/generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/SharedCookies/Count/CountRequestBuilder.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@
1313
using System.Threading.Tasks;
1414
using System.Threading;
1515
using System;
16-
namespace ApiSdk.Admin.Edge.InternetExplorerMode.SiteLists.Item.SharedCookies.Count {
16+
namespace ApiSdk.Admin.Edge.InternetExplorerMode.SiteLists.Item.SharedCookies.Count
17+
{
1718
/// <summary>
1819
/// Provides operations to count the resources in the collection.
1920
/// </summary>
20-
public class CountRequestBuilder : BaseCliRequestBuilder
21+
public class CountRequestBuilder : BaseCliRequestBuilder
2122
{
2223
/// <summary>
2324
/// Get the number of the resource

src/generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/SharedCookies/Item/BrowserSharedCookieItemRequestBuilder.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@
1414
using System.Threading.Tasks;
1515
using System.Threading;
1616
using System;
17-
namespace ApiSdk.Admin.Edge.InternetExplorerMode.SiteLists.Item.SharedCookies.Item {
17+
namespace ApiSdk.Admin.Edge.InternetExplorerMode.SiteLists.Item.SharedCookies.Item
18+
{
1819
/// <summary>
1920
/// Provides operations to manage the sharedCookies property of the microsoft.graph.browserSiteList entity.
2021
/// </summary>
21-
public class BrowserSharedCookieItemRequestBuilder : BaseCliRequestBuilder
22+
public class BrowserSharedCookieItemRequestBuilder : BaseCliRequestBuilder
2223
{
2324
/// <summary>
2425
/// Delete a browserSharedCookie from a browserSiteList.

src/generated/Admin/Edge/InternetExplorerMode/SiteLists/Item/SharedCookies/SharedCookiesRequestBuilder.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@
1616
using System.Threading.Tasks;
1717
using System.Threading;
1818
using System;
19-
namespace ApiSdk.Admin.Edge.InternetExplorerMode.SiteLists.Item.SharedCookies {
19+
namespace ApiSdk.Admin.Edge.InternetExplorerMode.SiteLists.Item.SharedCookies
20+
{
2021
/// <summary>
2122
/// Provides operations to manage the sharedCookies property of the microsoft.graph.browserSiteList entity.
2223
/// </summary>
23-
public class SharedCookiesRequestBuilder : BaseCliRequestBuilder
24+
public class SharedCookiesRequestBuilder : BaseCliRequestBuilder
2425
{
2526
/// <summary>
2627
/// Provides operations to manage the sharedCookies property of the microsoft.graph.browserSiteList entity.
@@ -194,7 +195,9 @@ public Command BuildListCommand()
194195
var pagingData = new PageLinkData(requestInfo, null, itemName: "value", nextLinkName: "@odata.nextLink");
195196
var pageResponse = await pagingService.GetPagedDataAsync((info, token) => reqAdapter.SendNoContentAsync(info, cancellationToken: token), pagingData, all, cancellationToken);
196197
var response = pageResponse?.Response;
198+
#nullable enable
197199
IOutputFormatter? formatter = null;
200+
#nullable restore
198201
if (pageResponse?.StatusCode >= 200 && pageResponse?.StatusCode < 300) {
199202
formatter = outputFormatterFactory.GetFormatter(output);
200203
response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response;

0 commit comments

Comments
 (0)