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

Commit ba4c72b

Browse files
andrueastmanMicrosoft Graph DevX Tooling
andauthored
feat(generation): update request builders and models (#450)
Update generated files with build 140016 Co-authored-by: Microsoft Graph DevX Tooling <[email protected]>
1 parent 39ed80c commit ba4c72b

File tree

12,517 files changed

+278328
-136632
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,517 files changed

+278328
-136632
lines changed

src/generated/Admin/AdminRequestBuilder.cs

Lines changed: 62 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// <auto-generated/>
22
using ApiSdk.Admin.Edge;
3+
using ApiSdk.Admin.Microsoft365Apps;
34
using ApiSdk.Admin.People;
45
using ApiSdk.Admin.ServiceAnnouncement;
56
using ApiSdk.Admin.Sharepoint;
@@ -22,12 +23,14 @@ namespace ApiSdk.Admin {
2223
/// <summary>
2324
/// Provides operations to manage the admin singleton.
2425
/// </summary>
25-
public class AdminRequestBuilder : BaseCliRequestBuilder {
26+
public class AdminRequestBuilder : BaseCliRequestBuilder
27+
{
2628
/// <summary>
2729
/// Provides operations to manage the edge property of the microsoft.graph.admin entity.
2830
/// </summary>
29-
/// <returns>A <cref="Command"></returns>
30-
public Command BuildEdgeNavCommand() {
31+
/// <returns>A <see cref="Command"/></returns>
32+
public Command BuildEdgeNavCommand()
33+
{
3134
var command = new Command("edge");
3235
command.Description = "Provides operations to manage the edge property of the microsoft.graph.admin entity.";
3336
var builder = new EdgeRequestBuilder(PathParameters);
@@ -50,8 +53,9 @@ public Command BuildEdgeNavCommand() {
5053
/// <summary>
5154
/// Get admin
5255
/// </summary>
53-
/// <returns>A <cref="Command"></returns>
54-
public Command BuildGetCommand() {
56+
/// <returns>A <see cref="Command"/></returns>
57+
public Command BuildGetCommand()
58+
{
5559
var command = new Command("get");
5660
command.Description = "Get admin";
5761
var selectOption = new Option<string[]>("--select", description: "Select properties to be returned") {
@@ -93,10 +97,36 @@ public Command BuildGetCommand() {
9397
return command;
9498
}
9599
/// <summary>
100+
/// Provides operations to manage the microsoft365Apps property of the microsoft.graph.admin entity.
101+
/// </summary>
102+
/// <returns>A <see cref="Command"/></returns>
103+
public Command BuildMicrosoft365AppsNavCommand()
104+
{
105+
var command = new Command("microsoft365-apps");
106+
command.Description = "Provides operations to manage the microsoft365Apps property of the microsoft.graph.admin entity.";
107+
var builder = new Microsoft365AppsRequestBuilder(PathParameters);
108+
var execCommands = new List<Command>();
109+
var nonExecCommands = new List<Command>();
110+
execCommands.Add(builder.BuildDeleteCommand());
111+
execCommands.Add(builder.BuildGetCommand());
112+
nonExecCommands.Add(builder.BuildInstallationOptionsNavCommand());
113+
execCommands.Add(builder.BuildPatchCommand());
114+
foreach (var cmd in execCommands)
115+
{
116+
command.AddCommand(cmd);
117+
}
118+
foreach (var cmd in nonExecCommands)
119+
{
120+
command.AddCommand(cmd);
121+
}
122+
return command;
123+
}
124+
/// <summary>
96125
/// Update admin
97126
/// </summary>
98-
/// <returns>A <cref="Command"></returns>
99-
public Command BuildPatchCommand() {
127+
/// <returns>A <see cref="Command"/></returns>
128+
public Command BuildPatchCommand()
129+
{
100130
var command = new Command("patch");
101131
command.Description = "Update admin";
102132
var bodyOption = new Option<string>("--body", description: "The request body") {
@@ -139,8 +169,9 @@ public Command BuildPatchCommand() {
139169
/// <summary>
140170
/// Provides operations to manage the people property of the microsoft.graph.admin entity.
141171
/// </summary>
142-
/// <returns>A <cref="Command"></returns>
143-
public Command BuildPeopleNavCommand() {
172+
/// <returns>A <see cref="Command"/></returns>
173+
public Command BuildPeopleNavCommand()
174+
{
144175
var command = new Command("people");
145176
command.Description = "Provides operations to manage the people property of the microsoft.graph.admin entity.";
146177
var builder = new PeopleRequestBuilder(PathParameters);
@@ -162,8 +193,9 @@ public Command BuildPeopleNavCommand() {
162193
/// <summary>
163194
/// Provides operations to manage the serviceAnnouncement property of the microsoft.graph.admin entity.
164195
/// </summary>
165-
/// <returns>A <cref="Command"></returns>
166-
public Command BuildServiceAnnouncementNavCommand() {
196+
/// <returns>A <see cref="Command"/></returns>
197+
public Command BuildServiceAnnouncementNavCommand()
198+
{
167199
var command = new Command("service-announcement");
168200
command.Description = "Provides operations to manage the serviceAnnouncement property of the microsoft.graph.admin entity.";
169201
var builder = new ServiceAnnouncementRequestBuilder(PathParameters);
@@ -188,8 +220,9 @@ public Command BuildServiceAnnouncementNavCommand() {
188220
/// <summary>
189221
/// Provides operations to manage the sharepoint property of the microsoft.graph.admin entity.
190222
/// </summary>
191-
/// <returns>A <cref="Command"></returns>
192-
public Command BuildSharepointNavCommand() {
223+
/// <returns>A <see cref="Command"/></returns>
224+
public Command BuildSharepointNavCommand()
225+
{
193226
var command = new Command("sharepoint");
194227
command.Description = "Provides operations to manage the sharepoint property of the microsoft.graph.admin entity.";
195228
var builder = new SharepointRequestBuilder(PathParameters);
@@ -213,25 +246,29 @@ public Command BuildSharepointNavCommand() {
213246
/// Instantiates a new <see cref="AdminRequestBuilder"/> and sets the default values.
214247
/// </summary>
215248
/// <param name="pathParameters">Path parameters for the request</param>
216-
public AdminRequestBuilder(Dictionary<string, object> pathParameters) : base("{+baseurl}/admin{?%24expand,%24select}", pathParameters) {
249+
public AdminRequestBuilder(Dictionary<string, object> pathParameters) : base("{+baseurl}/admin{?%24expand,%24select}", pathParameters)
250+
{
217251
}
218252
/// <summary>
219253
/// Instantiates a new <see cref="AdminRequestBuilder"/> and sets the default values.
220254
/// </summary>
221255
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
222-
public AdminRequestBuilder(string rawUrl) : base("{+baseurl}/admin{?%24expand,%24select}", rawUrl) {
256+
public AdminRequestBuilder(string rawUrl) : base("{+baseurl}/admin{?%24expand,%24select}", rawUrl)
257+
{
223258
}
224259
/// <summary>
225260
/// Get admin
226261
/// </summary>
227-
/// <returns>A <cref="RequestInformation"></returns>
262+
/// <returns>A <see cref="RequestInformation"/></returns>
228263
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
229264
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
230265
#nullable enable
231-
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<AdminRequestBuilderGetQueryParameters>>? requestConfiguration = default) {
266+
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<AdminRequestBuilderGetQueryParameters>>? requestConfiguration = default)
267+
{
232268
#nullable restore
233269
#else
234-
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<AdminRequestBuilderGetQueryParameters>> requestConfiguration = default) {
270+
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<AdminRequestBuilderGetQueryParameters>> requestConfiguration = default)
271+
{
235272
#endif
236273
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
237274
requestInfo.Configure(requestConfiguration);
@@ -241,15 +278,17 @@ public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<Ad
241278
/// <summary>
242279
/// Update admin
243280
/// </summary>
244-
/// <returns>A <cref="RequestInformation"></returns>
281+
/// <returns>A <see cref="RequestInformation"/></returns>
245282
/// <param name="body">The request body</param>
246283
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
247284
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
248285
#nullable enable
249-
public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Admin body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default) {
286+
public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Admin body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default)
287+
{
250288
#nullable restore
251289
#else
252-
public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Admin body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default) {
290+
public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Admin body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default)
291+
{
253292
#endif
254293
_ = body ?? throw new ArgumentNullException(nameof(body));
255294
var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/admin", PathParameters);
@@ -260,7 +299,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Admin body, Ac
260299
/// <summary>
261300
/// Get admin
262301
/// </summary>
263-
public class AdminRequestBuilderGetQueryParameters {
302+
public class AdminRequestBuilderGetQueryParameters
303+
{
264304
/// <summary>Expand related entities</summary>
265305
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
266306
#nullable enable

src/generated/Admin/Edge/EdgeRequestBuilder.cs

Lines changed: 35 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,14 @@ namespace ApiSdk.Admin.Edge {
1919
/// <summary>
2020
/// Provides operations to manage the edge property of the microsoft.graph.admin entity.
2121
/// </summary>
22-
public class EdgeRequestBuilder : BaseCliRequestBuilder {
22+
public class EdgeRequestBuilder : BaseCliRequestBuilder
23+
{
2324
/// <summary>
2425
/// Delete navigation property edge for admin
2526
/// </summary>
26-
/// <returns>A <cref="Command"></returns>
27-
public Command BuildDeleteCommand() {
27+
/// <returns>A <see cref="Command"/></returns>
28+
public Command BuildDeleteCommand()
29+
{
2830
var command = new Command("delete");
2931
command.Description = "Delete navigation property edge for admin";
3032
var ifMatchOption = new Option<string[]>("--if-match", description: "ETag") {
@@ -51,8 +53,9 @@ public Command BuildDeleteCommand() {
5153
/// <summary>
5254
/// A container for Microsoft Edge resources. Read-only.
5355
/// </summary>
54-
/// <returns>A <cref="Command"></returns>
55-
public Command BuildGetCommand() {
56+
/// <returns>A <see cref="Command"/></returns>
57+
public Command BuildGetCommand()
58+
{
5659
var command = new Command("get");
5760
command.Description = "A container for Microsoft Edge resources. Read-only.";
5861
var selectOption = new Option<string[]>("--select", description: "Select properties to be returned") {
@@ -96,8 +99,9 @@ public Command BuildGetCommand() {
9699
/// <summary>
97100
/// Provides operations to manage the internetExplorerMode property of the microsoft.graph.edge entity.
98101
/// </summary>
99-
/// <returns>A <cref="Command"></returns>
100-
public Command BuildInternetExplorerModeNavCommand() {
102+
/// <returns>A <see cref="Command"/></returns>
103+
public Command BuildInternetExplorerModeNavCommand()
104+
{
101105
var command = new Command("internet-explorer-mode");
102106
command.Description = "Provides operations to manage the internetExplorerMode property of the microsoft.graph.edge entity.";
103107
var builder = new InternetExplorerModeRequestBuilder(PathParameters);
@@ -120,8 +124,9 @@ public Command BuildInternetExplorerModeNavCommand() {
120124
/// <summary>
121125
/// Update the navigation property edge in admin
122126
/// </summary>
123-
/// <returns>A <cref="Command"></returns>
124-
public Command BuildPatchCommand() {
127+
/// <returns>A <see cref="Command"/></returns>
128+
public Command BuildPatchCommand()
129+
{
125130
var command = new Command("patch");
126131
command.Description = "Update the navigation property edge in admin";
127132
var bodyOption = new Option<string>("--body", description: "The request body") {
@@ -165,25 +170,29 @@ public Command BuildPatchCommand() {
165170
/// Instantiates a new <see cref="EdgeRequestBuilder"/> and sets the default values.
166171
/// </summary>
167172
/// <param name="pathParameters">Path parameters for the request</param>
168-
public EdgeRequestBuilder(Dictionary<string, object> pathParameters) : base("{+baseurl}/admin/edge{?%24expand,%24select}", pathParameters) {
173+
public EdgeRequestBuilder(Dictionary<string, object> pathParameters) : base("{+baseurl}/admin/edge{?%24expand,%24select}", pathParameters)
174+
{
169175
}
170176
/// <summary>
171177
/// Instantiates a new <see cref="EdgeRequestBuilder"/> and sets the default values.
172178
/// </summary>
173179
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
174-
public EdgeRequestBuilder(string rawUrl) : base("{+baseurl}/admin/edge{?%24expand,%24select}", rawUrl) {
180+
public EdgeRequestBuilder(string rawUrl) : base("{+baseurl}/admin/edge{?%24expand,%24select}", rawUrl)
181+
{
175182
}
176183
/// <summary>
177184
/// Delete navigation property edge for admin
178185
/// </summary>
179-
/// <returns>A <cref="RequestInformation"></returns>
186+
/// <returns>A <see cref="RequestInformation"/></returns>
180187
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
181188
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
182189
#nullable enable
183-
public RequestInformation ToDeleteRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default) {
190+
public RequestInformation ToDeleteRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default)
191+
{
184192
#nullable restore
185193
#else
186-
public RequestInformation ToDeleteRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default) {
194+
public RequestInformation ToDeleteRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default)
195+
{
187196
#endif
188197
var requestInfo = new RequestInformation(Method.DELETE, "{+baseurl}/admin/edge", PathParameters);
189198
requestInfo.Configure(requestConfiguration);
@@ -193,14 +202,16 @@ public RequestInformation ToDeleteRequestInformation(Action<RequestConfiguration
193202
/// <summary>
194203
/// A container for Microsoft Edge resources. Read-only.
195204
/// </summary>
196-
/// <returns>A <cref="RequestInformation"></returns>
205+
/// <returns>A <see cref="RequestInformation"/></returns>
197206
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
198207
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
199208
#nullable enable
200-
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<EdgeRequestBuilderGetQueryParameters>>? requestConfiguration = default) {
209+
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<EdgeRequestBuilderGetQueryParameters>>? requestConfiguration = default)
210+
{
201211
#nullable restore
202212
#else
203-
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<EdgeRequestBuilderGetQueryParameters>> requestConfiguration = default) {
213+
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<EdgeRequestBuilderGetQueryParameters>> requestConfiguration = default)
214+
{
204215
#endif
205216
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
206217
requestInfo.Configure(requestConfiguration);
@@ -210,15 +221,17 @@ public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<Ed
210221
/// <summary>
211222
/// Update the navigation property edge in admin
212223
/// </summary>
213-
/// <returns>A <cref="RequestInformation"></returns>
224+
/// <returns>A <see cref="RequestInformation"/></returns>
214225
/// <param name="body">The request body</param>
215226
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
216227
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
217228
#nullable enable
218-
public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Edge body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default) {
229+
public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Edge body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default)
230+
{
219231
#nullable restore
220232
#else
221-
public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Edge body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default) {
233+
public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Edge body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default)
234+
{
222235
#endif
223236
_ = body ?? throw new ArgumentNullException(nameof(body));
224237
var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/admin/edge", PathParameters);
@@ -229,7 +242,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Edge body, Act
229242
/// <summary>
230243
/// A container for Microsoft Edge resources. Read-only.
231244
/// </summary>
232-
public class EdgeRequestBuilderGetQueryParameters {
245+
public class EdgeRequestBuilderGetQueryParameters
246+
{
233247
/// <summary>Expand related entities</summary>
234248
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
235249
#nullable enable

0 commit comments

Comments
 (0)