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

Commit 4ebbaac

Browse files
Microsoft Graph DevX ToolingMicrosoft Graph DevX Tooling
authored andcommitted
feat(generation): update request builders and models
Update generated files with build 192501
1 parent 5233f10 commit 4ebbaac

File tree

15,836 files changed

+545828
-400890
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,836 files changed

+545828
-400890
lines changed

src/generated/Admin/AdminRequestBuilder.cs

Lines changed: 41 additions & 29 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());
@@ -59,32 +63,18 @@ public Command BuildGetCommand()
5963
{
6064
var command = new Command("get");
6165
command.Description = "Get admin";
62-
var selectOption = new Option<string[]>("--select", description: "Select properties to be returned") {
63-
Arity = ArgumentArity.ZeroOrMore
64-
};
65-
selectOption.IsRequired = false;
66-
command.AddOption(selectOption);
67-
var expandOption = new Option<string[]>("--expand", description: "Expand related entities") {
68-
Arity = ArgumentArity.ZeroOrMore
69-
};
70-
expandOption.IsRequired = false;
71-
command.AddOption(expandOption);
7266
var outputOption = new Option<FormatterType>("--output", () => FormatterType.JSON);
7367
command.AddOption(outputOption);
7468
var queryOption = new Option<string>("--query");
7569
command.AddOption(queryOption);
7670
command.SetHandler(async (invocationContext) => {
77-
var select = invocationContext.ParseResult.GetValueForOption(selectOption);
78-
var expand = invocationContext.ParseResult.GetValueForOption(expandOption);
7971
var output = invocationContext.ParseResult.GetValueForOption(outputOption);
8072
var query = invocationContext.ParseResult.GetValueForOption(queryOption);
8173
IOutputFilter outputFilter = invocationContext.BindingContext.GetService(typeof(IOutputFilter)) as IOutputFilter ?? throw new ArgumentNullException("outputFilter");
8274
IOutputFormatterFactory outputFormatterFactory = invocationContext.BindingContext.GetService(typeof(IOutputFormatterFactory)) as IOutputFormatterFactory ?? throw new ArgumentNullException("outputFormatterFactory");
8375
var cancellationToken = invocationContext.GetCancellationToken();
8476
var reqAdapter = invocationContext.GetRequestAdapter();
8577
var requestInfo = ToGetRequestInformation(q => {
86-
q.QueryParameters.Select = select;
87-
q.QueryParameters.Expand = expand;
8878
});
8979
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>> {
9080
{"4XX", ODataError.CreateFromDiscriminatorValue},
@@ -105,7 +95,7 @@ public Command BuildMicrosoft365AppsNavCommand()
10595
{
10696
var command = new Command("microsoft365-apps");
10797
command.Description = "Provides operations to manage the microsoft365Apps property of the microsoft.graph.admin entity.";
108-
var builder = new Microsoft365AppsRequestBuilder(PathParameters);
98+
var builder = new global::ApiSdk.Admin.Microsoft365Apps.Microsoft365AppsRequestBuilder(PathParameters);
10999
var execCommands = new List<Command>();
110100
var nonExecCommands = new List<Command>();
111101
execCommands.Add(builder.BuildDeleteCommand());
@@ -147,8 +137,8 @@ public Command BuildPatchCommand()
147137
var cancellationToken = invocationContext.GetCancellationToken();
148138
var reqAdapter = invocationContext.GetRequestAdapter();
149139
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);
140+
var parseNode = await ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNodeAsync("application/json", stream, cancellationToken);
141+
var model = parseNode.GetObjectValue<global::ApiSdk.Models.Admin>(global::ApiSdk.Models.Admin.CreateFromDiscriminatorValue);
152142
if (model is null) {
153143
Console.Error.WriteLine("No model data to send.");
154144
return;
@@ -175,10 +165,11 @@ public Command BuildPeopleNavCommand()
175165
{
176166
var command = new Command("people");
177167
command.Description = "Provides operations to manage the people property of the microsoft.graph.admin entity.";
178-
var builder = new PeopleRequestBuilder(PathParameters);
168+
var builder = new global::ApiSdk.Admin.People.PeopleRequestBuilder(PathParameters);
179169
var execCommands = new List<Command>();
180170
var nonExecCommands = new List<Command>();
181171
execCommands.Add(builder.BuildGetCommand());
172+
nonExecCommands.Add(builder.BuildItemInsightsNavCommand());
182173
nonExecCommands.Add(builder.BuildProfileCardPropertiesNavCommand());
183174
nonExecCommands.Add(builder.BuildPronounsNavCommand());
184175
foreach (var cmd in execCommands)
@@ -192,14 +183,33 @@ public Command BuildPeopleNavCommand()
192183
return command;
193184
}
194185
/// <summary>
186+
/// Provides operations to manage the reportSettings property of the microsoft.graph.admin entity.
187+
/// </summary>
188+
/// <returns>A <see cref="Command"/></returns>
189+
public Command BuildReportSettingsNavCommand()
190+
{
191+
var command = new Command("report-settings");
192+
command.Description = "Provides operations to manage the reportSettings property of the microsoft.graph.admin entity.";
193+
var builder = new global::ApiSdk.Admin.ReportSettings.ReportSettingsRequestBuilder(PathParameters);
194+
var execCommands = new List<Command>();
195+
execCommands.Add(builder.BuildDeleteCommand());
196+
execCommands.Add(builder.BuildGetCommand());
197+
execCommands.Add(builder.BuildPatchCommand());
198+
foreach (var cmd in execCommands)
199+
{
200+
command.AddCommand(cmd);
201+
}
202+
return command;
203+
}
204+
/// <summary>
195205
/// Provides operations to manage the serviceAnnouncement property of the microsoft.graph.admin entity.
196206
/// </summary>
197207
/// <returns>A <see cref="Command"/></returns>
198208
public Command BuildServiceAnnouncementNavCommand()
199209
{
200210
var command = new Command("service-announcement");
201211
command.Description = "Provides operations to manage the serviceAnnouncement property of the microsoft.graph.admin entity.";
202-
var builder = new ServiceAnnouncementRequestBuilder(PathParameters);
212+
var builder = new global::ApiSdk.Admin.ServiceAnnouncement.ServiceAnnouncementRequestBuilder(PathParameters);
203213
var execCommands = new List<Command>();
204214
var nonExecCommands = new List<Command>();
205215
execCommands.Add(builder.BuildDeleteCommand());
@@ -226,7 +236,7 @@ public Command BuildSharepointNavCommand()
226236
{
227237
var command = new Command("sharepoint");
228238
command.Description = "Provides operations to manage the sharepoint property of the microsoft.graph.admin entity.";
229-
var builder = new SharepointRequestBuilder(PathParameters);
239+
var builder = new global::ApiSdk.Admin.Sharepoint.SharepointRequestBuilder(PathParameters);
230240
var execCommands = new List<Command>();
231241
var nonExecCommands = new List<Command>();
232242
execCommands.Add(builder.BuildDeleteCommand());
@@ -244,14 +254,14 @@ public Command BuildSharepointNavCommand()
244254
return command;
245255
}
246256
/// <summary>
247-
/// Instantiates a new <see cref="AdminRequestBuilder"/> and sets the default values.
257+
/// Instantiates a new <see cref="global::ApiSdk.Admin.AdminRequestBuilder"/> and sets the default values.
248258
/// </summary>
249259
/// <param name="pathParameters">Path parameters for the request</param>
250260
public AdminRequestBuilder(Dictionary<string, object> pathParameters) : base("{+baseurl}/admin{?%24expand,%24select}", pathParameters)
251261
{
252262
}
253263
/// <summary>
254-
/// Instantiates a new <see cref="AdminRequestBuilder"/> and sets the default values.
264+
/// Instantiates a new <see cref="global::ApiSdk.Admin.AdminRequestBuilder"/> and sets the default values.
255265
/// </summary>
256266
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
257267
public AdminRequestBuilder(string rawUrl) : base("{+baseurl}/admin{?%24expand,%24select}", rawUrl)
@@ -264,11 +274,11 @@ public AdminRequestBuilder(string rawUrl) : base("{+baseurl}/admin{?%24expand,%2
264274
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
265275
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
266276
#nullable enable
267-
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<AdminRequestBuilderGetQueryParameters>>? requestConfiguration = default)
277+
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<global::ApiSdk.Admin.AdminRequestBuilder.AdminRequestBuilderGetQueryParameters>>? requestConfiguration = default)
268278
{
269279
#nullable restore
270280
#else
271-
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<AdminRequestBuilderGetQueryParameters>> requestConfiguration = default)
281+
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<global::ApiSdk.Admin.AdminRequestBuilder.AdminRequestBuilderGetQueryParameters>> requestConfiguration = default)
272282
{
273283
#endif
274284
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
@@ -284,11 +294,11 @@ public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<Ad
284294
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
285295
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
286296
#nullable enable
287-
public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Admin body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default)
297+
public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Admin body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default)
288298
{
289299
#nullable restore
290300
#else
291-
public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Admin body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default)
301+
public RequestInformation ToPatchRequestInformation(global::ApiSdk.Models.Admin body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default)
292302
{
293303
#endif
294304
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -300,7 +310,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Admin body, Ac
300310
/// <summary>
301311
/// Get admin
302312
/// </summary>
303-
public class AdminRequestBuilderGetQueryParameters
313+
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
314+
public partial class AdminRequestBuilderGetQueryParameters
304315
{
305316
/// <summary>Expand related entities</summary>
306317
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -325,3 +336,4 @@ public class AdminRequestBuilderGetQueryParameters
325336
}
326337
}
327338
}
339+
#pragma warning restore CS0618

0 commit comments

Comments
 (0)