Skip to content

Commit

Permalink
feat(generation): update request builders and models (#431)
Browse files Browse the repository at this point in the history
Update generated files with build 135049

Co-authored-by: Microsoft Graph DevX Tooling <[email protected]>
Co-authored-by: Caleb Kiage <[email protected]>
  • Loading branch information
3 people authored Feb 14, 2024
1 parent 63cac65 commit a6727d6
Show file tree
Hide file tree
Showing 11,641 changed files with 70,076 additions and 24,004 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
14 changes: 11 additions & 3 deletions src/generated/Admin/AdminRequestBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public class AdminRequestBuilder : BaseCliRequestBuilder {
/// <summary>
/// Provides operations to manage the edge property of the microsoft.graph.admin entity.
/// </summary>
/// <returns>A <cref="Command"></returns>
public Command BuildEdgeNavCommand() {
var command = new Command("edge");
command.Description = "Provides operations to manage the edge property of the microsoft.graph.admin entity.";
Expand All @@ -49,6 +50,7 @@ public Command BuildEdgeNavCommand() {
/// <summary>
/// Get admin
/// </summary>
/// <returns>A <cref="Command"></returns>
public Command BuildGetCommand() {
var command = new Command("get");
command.Description = "Get admin";
Expand Down Expand Up @@ -93,6 +95,7 @@ public Command BuildGetCommand() {
/// <summary>
/// Update admin
/// </summary>
/// <returns>A <cref="Command"></returns>
public Command BuildPatchCommand() {
var command = new Command("patch");
command.Description = "Update admin";
Expand Down Expand Up @@ -136,6 +139,7 @@ public Command BuildPatchCommand() {
/// <summary>
/// Provides operations to manage the people property of the microsoft.graph.admin entity.
/// </summary>
/// <returns>A <cref="Command"></returns>
public Command BuildPeopleNavCommand() {
var command = new Command("people");
command.Description = "Provides operations to manage the people property of the microsoft.graph.admin entity.";
Expand All @@ -158,6 +162,7 @@ public Command BuildPeopleNavCommand() {
/// <summary>
/// Provides operations to manage the serviceAnnouncement property of the microsoft.graph.admin entity.
/// </summary>
/// <returns>A <cref="Command"></returns>
public Command BuildServiceAnnouncementNavCommand() {
var command = new Command("service-announcement");
command.Description = "Provides operations to manage the serviceAnnouncement property of the microsoft.graph.admin entity.";
Expand All @@ -183,6 +188,7 @@ public Command BuildServiceAnnouncementNavCommand() {
/// <summary>
/// Provides operations to manage the sharepoint property of the microsoft.graph.admin entity.
/// </summary>
/// <returns>A <cref="Command"></returns>
public Command BuildSharepointNavCommand() {
var command = new Command("sharepoint");
command.Description = "Provides operations to manage the sharepoint property of the microsoft.graph.admin entity.";
Expand All @@ -204,20 +210,21 @@ public Command BuildSharepointNavCommand() {
return command;
}
/// <summary>
/// Instantiates a new AdminRequestBuilder and sets the default values.
/// Instantiates a new <see cref="AdminRequestBuilder"/> and sets the default values.
/// </summary>
/// <param name="pathParameters">Path parameters for the request</param>
public AdminRequestBuilder(Dictionary<string, object> pathParameters) : base("{+baseurl}/admin{?%24expand,%24select}", pathParameters) {
}
/// <summary>
/// Instantiates a new AdminRequestBuilder and sets the default values.
/// Instantiates a new <see cref="AdminRequestBuilder"/> and sets the default values.
/// </summary>
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
public AdminRequestBuilder(string rawUrl) : base("{+baseurl}/admin{?%24expand,%24select}", rawUrl) {
}
/// <summary>
/// Get admin
/// </summary>
/// <returns>A <cref="RequestInformation"></returns>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
Expand All @@ -234,6 +241,7 @@ public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<Ad
/// <summary>
/// Update admin
/// </summary>
/// <returns>A <cref="RequestInformation"></returns>
/// <param name="body">The request body</param>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
Expand All @@ -244,7 +252,7 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Admin body, Ac
public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Admin body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default) {
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters);
var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/admin", PathParameters);
requestInfo.Configure(requestConfiguration);
requestInfo.Headers.TryAdd("Accept", "application/json");
return requestInfo;
Expand Down
15 changes: 11 additions & 4 deletions src/generated/Admin/Edge/EdgeRequestBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public class EdgeRequestBuilder : BaseCliRequestBuilder {
/// <summary>
/// Delete navigation property edge for admin
/// </summary>
/// <returns>A <cref="Command"></returns>
public Command BuildDeleteCommand() {
var command = new Command("delete");
command.Description = "Delete navigation property edge for admin";
Expand Down Expand Up @@ -50,6 +51,7 @@ public Command BuildDeleteCommand() {
/// <summary>
/// A container for Microsoft Edge resources. Read-only.
/// </summary>
/// <returns>A <cref="Command"></returns>
public Command BuildGetCommand() {
var command = new Command("get");
command.Description = "A container for Microsoft Edge resources. Read-only.";
Expand Down Expand Up @@ -94,6 +96,7 @@ public Command BuildGetCommand() {
/// <summary>
/// Provides operations to manage the internetExplorerMode property of the microsoft.graph.edge entity.
/// </summary>
/// <returns>A <cref="Command"></returns>
public Command BuildInternetExplorerModeNavCommand() {
var command = new Command("internet-explorer-mode");
command.Description = "Provides operations to manage the internetExplorerMode property of the microsoft.graph.edge entity.";
Expand All @@ -117,6 +120,7 @@ public Command BuildInternetExplorerModeNavCommand() {
/// <summary>
/// Update the navigation property edge in admin
/// </summary>
/// <returns>A <cref="Command"></returns>
public Command BuildPatchCommand() {
var command = new Command("patch");
command.Description = "Update the navigation property edge in admin";
Expand Down Expand Up @@ -158,20 +162,21 @@ public Command BuildPatchCommand() {
return command;
}
/// <summary>
/// Instantiates a new EdgeRequestBuilder and sets the default values.
/// Instantiates a new <see cref="EdgeRequestBuilder"/> and sets the default values.
/// </summary>
/// <param name="pathParameters">Path parameters for the request</param>
public EdgeRequestBuilder(Dictionary<string, object> pathParameters) : base("{+baseurl}/admin/edge{?%24expand,%24select}", pathParameters) {
}
/// <summary>
/// Instantiates a new EdgeRequestBuilder and sets the default values.
/// Instantiates a new <see cref="EdgeRequestBuilder"/> and sets the default values.
/// </summary>
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
public EdgeRequestBuilder(string rawUrl) : base("{+baseurl}/admin/edge{?%24expand,%24select}", rawUrl) {
}
/// <summary>
/// Delete navigation property edge for admin
/// </summary>
/// <returns>A <cref="RequestInformation"></returns>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
Expand All @@ -180,14 +185,15 @@ public RequestInformation ToDeleteRequestInformation(Action<RequestConfiguration
#else
public RequestInformation ToDeleteRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default) {
#endif
var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters);
var requestInfo = new RequestInformation(Method.DELETE, "{+baseurl}/admin/edge", PathParameters);
requestInfo.Configure(requestConfiguration);
requestInfo.Headers.TryAdd("Accept", "application/json");
return requestInfo;
}
/// <summary>
/// A container for Microsoft Edge resources. Read-only.
/// </summary>
/// <returns>A <cref="RequestInformation"></returns>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
Expand All @@ -204,6 +210,7 @@ public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<Ed
/// <summary>
/// Update the navigation property edge in admin
/// </summary>
/// <returns>A <cref="RequestInformation"></returns>
/// <param name="body">The request body</param>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
Expand All @@ -214,7 +221,7 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Edge body, Act
public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Edge body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default) {
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters);
var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/admin/edge", PathParameters);
requestInfo.Configure(requestConfiguration);
requestInfo.Headers.TryAdd("Accept", "application/json");
return requestInfo;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public class InternetExplorerModeRequestBuilder : BaseCliRequestBuilder {
/// <summary>
/// Delete navigation property internetExplorerMode for admin
/// </summary>
/// <returns>A <cref="Command"></returns>
public Command BuildDeleteCommand() {
var command = new Command("delete");
command.Description = "Delete navigation property internetExplorerMode for admin";
Expand Down Expand Up @@ -50,6 +51,7 @@ public Command BuildDeleteCommand() {
/// <summary>
/// A container for Internet Explorer mode resources.
/// </summary>
/// <returns>A <cref="Command"></returns>
public Command BuildGetCommand() {
var command = new Command("get");
command.Description = "A container for Internet Explorer mode resources.";
Expand Down Expand Up @@ -94,6 +96,7 @@ public Command BuildGetCommand() {
/// <summary>
/// Update the navigation property internetExplorerMode in admin
/// </summary>
/// <returns>A <cref="Command"></returns>
public Command BuildPatchCommand() {
var command = new Command("patch");
command.Description = "Update the navigation property internetExplorerMode in admin";
Expand Down Expand Up @@ -137,6 +140,7 @@ public Command BuildPatchCommand() {
/// <summary>
/// Provides operations to manage the siteLists property of the microsoft.graph.internetExplorerMode entity.
/// </summary>
/// <returns>A <cref="Command"></returns>
public Command BuildSiteListsNavCommand() {
var command = new Command("site-lists");
command.Description = "Provides operations to manage the siteLists property of the microsoft.graph.internetExplorerMode entity.";
Expand All @@ -160,20 +164,21 @@ public Command BuildSiteListsNavCommand() {
return command;
}
/// <summary>
/// Instantiates a new InternetExplorerModeRequestBuilder and sets the default values.
/// Instantiates a new <see cref="InternetExplorerModeRequestBuilder"/> and sets the default values.
/// </summary>
/// <param name="pathParameters">Path parameters for the request</param>
public InternetExplorerModeRequestBuilder(Dictionary<string, object> pathParameters) : base("{+baseurl}/admin/edge/internetExplorerMode{?%24expand,%24select}", pathParameters) {
}
/// <summary>
/// Instantiates a new InternetExplorerModeRequestBuilder and sets the default values.
/// Instantiates a new <see cref="InternetExplorerModeRequestBuilder"/> and sets the default values.
/// </summary>
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
public InternetExplorerModeRequestBuilder(string rawUrl) : base("{+baseurl}/admin/edge/internetExplorerMode{?%24expand,%24select}", rawUrl) {
}
/// <summary>
/// Delete navigation property internetExplorerMode for admin
/// </summary>
/// <returns>A <cref="RequestInformation"></returns>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
Expand All @@ -182,14 +187,15 @@ public RequestInformation ToDeleteRequestInformation(Action<RequestConfiguration
#else
public RequestInformation ToDeleteRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default) {
#endif
var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters);
var requestInfo = new RequestInformation(Method.DELETE, "{+baseurl}/admin/edge/internetExplorerMode", PathParameters);
requestInfo.Configure(requestConfiguration);
requestInfo.Headers.TryAdd("Accept", "application/json");
return requestInfo;
}
/// <summary>
/// A container for Internet Explorer mode resources.
/// </summary>
/// <returns>A <cref="RequestInformation"></returns>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
Expand All @@ -206,6 +212,7 @@ public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<In
/// <summary>
/// Update the navigation property internetExplorerMode in admin
/// </summary>
/// <returns>A <cref="RequestInformation"></returns>
/// <param name="body">The request body</param>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
Expand All @@ -216,7 +223,7 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.InternetExplor
public RequestInformation ToPatchRequestInformation(ApiSdk.Models.InternetExplorerMode body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default) {
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters);
var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/admin/edge/internetExplorerMode", PathParameters);
requestInfo.Configure(requestConfiguration);
requestInfo.Headers.TryAdd("Accept", "application/json");
return requestInfo;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public class CountRequestBuilder : BaseCliRequestBuilder {
/// <summary>
/// Get the number of the resource
/// </summary>
/// <returns>A <cref="Command"></returns>
public Command BuildGetCommand() {
var command = new Command("get");
command.Description = "Get the number of the resource";
Expand Down Expand Up @@ -53,20 +54,21 @@ public Command BuildGetCommand() {
return command;
}
/// <summary>
/// Instantiates a new CountRequestBuilder and sets the default values.
/// Instantiates a new <see cref="CountRequestBuilder"/> and sets the default values.
/// </summary>
/// <param name="pathParameters">Path parameters for the request</param>
public CountRequestBuilder(Dictionary<string, object> pathParameters) : base("{+baseurl}/admin/edge/internetExplorerMode/siteLists/$count{?%24filter,%24search}", pathParameters) {
}
/// <summary>
/// Instantiates a new CountRequestBuilder and sets the default values.
/// Instantiates a new <see cref="CountRequestBuilder"/> and sets the default values.
/// </summary>
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
public CountRequestBuilder(string rawUrl) : base("{+baseurl}/admin/edge/internetExplorerMode/siteLists/$count{?%24filter,%24search}", rawUrl) {
}
/// <summary>
/// Get the number of the resource
/// </summary>
/// <returns>A <cref="RequestInformation"></returns>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
Expand Down
Loading

0 comments on commit a6727d6

Please sign in to comment.