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

Commit 2a12ea7

Browse files
Microsoft Graph DevX ToolingMicrosoft Graph DevX Tooling
authored andcommitted
feat(generation): update request builders and models
Update generated files with build 181777
1 parent b63b6f3 commit 2a12ea7

File tree

15,617 files changed

+530733
-312703
lines changed

Some content is hidden

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

15,617 files changed

+530733
-312703
lines changed

src/generated/Admin/AdminRequestBuilder.cs

Lines changed: 41 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
// <auto-generated/>
2+
#pragma warning disable CS0618
23
using ApiSdk.Admin.Edge;
34
using ApiSdk.Admin.Microsoft365Apps;
45
using ApiSdk.Admin.People;
6+
using ApiSdk.Admin.ReportSettings;
57
using ApiSdk.Admin.ServiceAnnouncement;
68
using ApiSdk.Admin.Sharepoint;
79
using ApiSdk.Models.ODataErrors;
810
using ApiSdk.Models;
11+
using Microsoft.Kiota.Abstractions.Extensions;
912
using Microsoft.Kiota.Abstractions.Serialization;
1013
using Microsoft.Kiota.Abstractions;
1114
using Microsoft.Kiota.Cli.Commons.Extensions;
@@ -24,7 +27,8 @@ namespace ApiSdk.Admin
2427
/// <summary>
2528
/// Provides operations to manage the admin singleton.
2629
/// </summary>
27-
public class AdminRequestBuilder : BaseCliRequestBuilder
30+
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
31+
public partial class AdminRequestBuilder : BaseCliRequestBuilder
2832
{
2933
/// <summary>
3034
/// Provides operations to manage the edge property of the microsoft.graph.admin entity.
@@ -34,7 +38,7 @@ public Command BuildEdgeNavCommand()
3438
{
3539
var command = new Command("edge");
3640
command.Description = "Provides operations to manage the edge property of the microsoft.graph.admin entity.";
37-
var builder = new EdgeRequestBuilder(PathParameters);
41+
var builder = new global::ApiSdk.Admin.Edge.EdgeRequestBuilder(PathParameters);
3842
var execCommands = new List<Command>();
3943
var nonExecCommands = new List<Command>();
4044
execCommands.Add(builder.BuildDeleteCommand());
@@ -105,7 +109,7 @@ public Command BuildMicrosoft365AppsNavCommand()
105109
{
106110
var command = new Command("microsoft365-apps");
107111
command.Description = "Provides operations to manage the microsoft365Apps property of the microsoft.graph.admin entity.";
108-
var builder = new Microsoft365AppsRequestBuilder(PathParameters);
112+
var builder = new global::ApiSdk.Admin.Microsoft365Apps.Microsoft365AppsRequestBuilder(PathParameters);
109113
var execCommands = new List<Command>();
110114
var nonExecCommands = new List<Command>();
111115
execCommands.Add(builder.BuildDeleteCommand());
@@ -147,8 +151,8 @@ public Command BuildPatchCommand()
147151
var cancellationToken = invocationContext.GetCancellationToken();
148152
var reqAdapter = invocationContext.GetRequestAdapter();
149153
using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body));
150-
var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream);
151-
var model = parseNode.GetObjectValue<ApiSdk.Models.Admin>(ApiSdk.Models.Admin.CreateFromDiscriminatorValue);
154+
var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken);
155+
var model = parseNode.GetObjectValue<global::ApiSdk.Models.Admin>(global::ApiSdk.Models.Admin.CreateFromDiscriminatorValue);
152156
if (model is null) {
153157
Console.Error.WriteLine("No model data to send.");
154158
return;
@@ -175,10 +179,11 @@ public Command BuildPeopleNavCommand()
175179
{
176180
var command = new Command("people");
177181
command.Description = "Provides operations to manage the people property of the microsoft.graph.admin entity.";
178-
var builder = new PeopleRequestBuilder(PathParameters);
182+
var builder = new global::ApiSdk.Admin.People.PeopleRequestBuilder(PathParameters);
179183
var execCommands = new List<Command>();
180184
var nonExecCommands = new List<Command>();
181185
execCommands.Add(builder.BuildGetCommand());
186+
nonExecCommands.Add(builder.BuildItemInsightsNavCommand());
182187
nonExecCommands.Add(builder.BuildProfileCardPropertiesNavCommand());
183188
nonExecCommands.Add(builder.BuildPronounsNavCommand());
184189
foreach (var cmd in execCommands)
@@ -192,14 +197,33 @@ public Command BuildPeopleNavCommand()
192197
return command;
193198
}
194199
/// <summary>
200+
/// Provides operations to manage the reportSettings property of the microsoft.graph.admin entity.
201+
/// </summary>
202+
/// <returns>A <see cref="Command"/></returns>
203+
public Command BuildReportSettingsNavCommand()
204+
{
205+
var command = new Command("report-settings");
206+
command.Description = "Provides operations to manage the reportSettings property of the microsoft.graph.admin entity.";
207+
var builder = new global::ApiSdk.Admin.ReportSettings.ReportSettingsRequestBuilder(PathParameters);
208+
var execCommands = new List<Command>();
209+
execCommands.Add(builder.BuildDeleteCommand());
210+
execCommands.Add(builder.BuildGetCommand());
211+
execCommands.Add(builder.BuildPatchCommand());
212+
foreach (var cmd in execCommands)
213+
{
214+
command.AddCommand(cmd);
215+
}
216+
return command;
217+
}
218+
/// <summary>
195219
/// Provides operations to manage the serviceAnnouncement property of the microsoft.graph.admin entity.
196220
/// </summary>
197221
/// <returns>A <see cref="Command"/></returns>
198222
public Command BuildServiceAnnouncementNavCommand()
199223
{
200224
var command = new Command("service-announcement");
201225
command.Description = "Provides operations to manage the serviceAnnouncement property of the microsoft.graph.admin entity.";
202-
var builder = new ServiceAnnouncementRequestBuilder(PathParameters);
226+
var builder = new global::ApiSdk.Admin.ServiceAnnouncement.ServiceAnnouncementRequestBuilder(PathParameters);
203227
var execCommands = new List<Command>();
204228
var nonExecCommands = new List<Command>();
205229
execCommands.Add(builder.BuildDeleteCommand());
@@ -226,7 +250,7 @@ public Command BuildSharepointNavCommand()
226250
{
227251
var command = new Command("sharepoint");
228252
command.Description = "Provides operations to manage the sharepoint property of the microsoft.graph.admin entity.";
229-
var builder = new SharepointRequestBuilder(PathParameters);
253+
var builder = new global::ApiSdk.Admin.Sharepoint.SharepointRequestBuilder(PathParameters);
230254
var execCommands = new List<Command>();
231255
var nonExecCommands = new List<Command>();
232256
execCommands.Add(builder.BuildDeleteCommand());
@@ -244,14 +268,14 @@ public Command BuildSharepointNavCommand()
244268
return command;
245269
}
246270
/// <summary>
247-
/// Instantiates a new <see cref="AdminRequestBuilder"/> and sets the default values.
271+
/// Instantiates a new <see cref="global::ApiSdk.Admin.AdminRequestBuilder"/> and sets the default values.
248272
/// </summary>
249273
/// <param name="pathParameters">Path parameters for the request</param>
250274
public AdminRequestBuilder(Dictionary<string, object> pathParameters) : base("{+baseurl}/admin{?%24expand,%24select}", pathParameters)
251275
{
252276
}
253277
/// <summary>
254-
/// Instantiates a new <see cref="AdminRequestBuilder"/> and sets the default values.
278+
/// Instantiates a new <see cref="global::ApiSdk.Admin.AdminRequestBuilder"/> and sets the default values.
255279
/// </summary>
256280
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
257281
public AdminRequestBuilder(string rawUrl) : base("{+baseurl}/admin{?%24expand,%24select}", rawUrl)
@@ -264,11 +288,11 @@ public AdminRequestBuilder(string rawUrl) : base("{+baseurl}/admin{?%24expand,%2
264288
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
265289
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
266290
#nullable enable
267-
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<AdminRequestBuilderGetQueryParameters>>? requestConfiguration = default)
291+
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<global::ApiSdk.Admin.AdminRequestBuilder.AdminRequestBuilderGetQueryParameters>>? requestConfiguration = default)
268292
{
269293
#nullable restore
270294
#else
271-
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<AdminRequestBuilderGetQueryParameters>> requestConfiguration = default)
295+
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<global::ApiSdk.Admin.AdminRequestBuilder.AdminRequestBuilderGetQueryParameters>> requestConfiguration = default)
272296
{
273297
#endif
274298
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
@@ -284,11 +308,11 @@ public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<Ad
284308
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
285309
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
286310
#nullable enable
287-
public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Admin body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default)
311+
public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Admin body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default)
288312
{
289313
#nullable restore
290314
#else
291-
public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Admin body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default)
315+
public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Admin body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default)
292316
{
293317
#endif
294318
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -300,7 +324,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Admin body, Ac
300324
/// <summary>
301325
/// Get admin
302326
/// </summary>
303-
public class AdminRequestBuilderGetQueryParameters
327+
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
328+
public partial class AdminRequestBuilderGetQueryParameters
304329
{
305330
/// <summary>Expand related entities</summary>
306331
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -325,3 +350,4 @@ public class AdminRequestBuilderGetQueryParameters
325350
}
326351
}
327352
}
353+
#pragma warning restore CS0618

src/generated/Admin/Edge/EdgeRequestBuilder.cs

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
// <auto-generated/>
2+
#pragma warning disable CS0618
23
using ApiSdk.Admin.Edge.InternetExplorerMode;
34
using ApiSdk.Models.ODataErrors;
45
using ApiSdk.Models;
6+
using Microsoft.Kiota.Abstractions.Extensions;
57
using Microsoft.Kiota.Abstractions.Serialization;
68
using Microsoft.Kiota.Abstractions;
79
using Microsoft.Kiota.Cli.Commons.Extensions;
@@ -20,7 +22,8 @@ namespace ApiSdk.Admin.Edge
2022
/// <summary>
2123
/// Provides operations to manage the edge property of the microsoft.graph.admin entity.
2224
/// </summary>
23-
public class EdgeRequestBuilder : BaseCliRequestBuilder
25+
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
26+
public partial class EdgeRequestBuilder : BaseCliRequestBuilder
2427
{
2528
/// <summary>
2629
/// Delete navigation property edge for admin
@@ -105,7 +108,7 @@ public Command BuildInternetExplorerModeNavCommand()
105108
{
106109
var command = new Command("internet-explorer-mode");
107110
command.Description = "Provides operations to manage the internetExplorerMode property of the microsoft.graph.edge entity.";
108-
var builder = new InternetExplorerModeRequestBuilder(PathParameters);
111+
var builder = new global::ApiSdk.Admin.Edge.InternetExplorerMode.InternetExplorerModeRequestBuilder(PathParameters);
109112
var execCommands = new List<Command>();
110113
var nonExecCommands = new List<Command>();
111114
execCommands.Add(builder.BuildDeleteCommand());
@@ -147,8 +150,8 @@ public Command BuildPatchCommand()
147150
var cancellationToken = invocationContext.GetCancellationToken();
148151
var reqAdapter = invocationContext.GetRequestAdapter();
149152
using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body));
150-
var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream);
151-
var model = parseNode.GetObjectValue<ApiSdk.Models.Edge>(ApiSdk.Models.Edge.CreateFromDiscriminatorValue);
153+
var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken);
154+
var model = parseNode.GetObjectValue<global::ApiSdk.Models.Edge>(global::ApiSdk.Models.Edge.CreateFromDiscriminatorValue);
152155
if (model is null) {
153156
Console.Error.WriteLine("No model data to send.");
154157
return;
@@ -168,14 +171,14 @@ public Command BuildPatchCommand()
168171
return command;
169172
}
170173
/// <summary>
171-
/// Instantiates a new <see cref="EdgeRequestBuilder"/> and sets the default values.
174+
/// Instantiates a new <see cref="global::ApiSdk.Admin.Edge.EdgeRequestBuilder"/> and sets the default values.
172175
/// </summary>
173176
/// <param name="pathParameters">Path parameters for the request</param>
174177
public EdgeRequestBuilder(Dictionary<string, object> pathParameters) : base("{+baseurl}/admin/edge{?%24expand,%24select}", pathParameters)
175178
{
176179
}
177180
/// <summary>
178-
/// Instantiates a new <see cref="EdgeRequestBuilder"/> and sets the default values.
181+
/// Instantiates a new <see cref="global::ApiSdk.Admin.Edge.EdgeRequestBuilder"/> and sets the default values.
179182
/// </summary>
180183
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
181184
public EdgeRequestBuilder(string rawUrl) : base("{+baseurl}/admin/edge{?%24expand,%24select}", rawUrl)
@@ -207,11 +210,11 @@ public RequestInformation ToDeleteRequestInformation(Action<RequestConfiguration
207210
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
208211
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
209212
#nullable enable
210-
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<EdgeRequestBuilderGetQueryParameters>>? requestConfiguration = default)
213+
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<global::ApiSdk.Admin.Edge.EdgeRequestBuilder.EdgeRequestBuilderGetQueryParameters>>? requestConfiguration = default)
211214
{
212215
#nullable restore
213216
#else
214-
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<EdgeRequestBuilderGetQueryParameters>> requestConfiguration = default)
217+
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<global::ApiSdk.Admin.Edge.EdgeRequestBuilder.EdgeRequestBuilderGetQueryParameters>> requestConfiguration = default)
215218
{
216219
#endif
217220
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
@@ -227,11 +230,11 @@ public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<Ed
227230
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
228231
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
229232
#nullable enable
230-
public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Edge body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default)
233+
public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Edge body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default)
231234
{
232235
#nullable restore
233236
#else
234-
public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Edge body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default)
237+
public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Edge body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default)
235238
{
236239
#endif
237240
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -243,7 +246,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Edge body, Act
243246
/// <summary>
244247
/// A container for Microsoft Edge resources. Read-only.
245248
/// </summary>
246-
public class EdgeRequestBuilderGetQueryParameters
249+
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
250+
public partial class EdgeRequestBuilderGetQueryParameters
247251
{
248252
/// <summary>Expand related entities</summary>
249253
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -268,3 +272,4 @@ public class EdgeRequestBuilderGetQueryParameters
268272
}
269273
}
270274
}
275+
#pragma warning restore CS0618

0 commit comments

Comments
 (0)