Skip to content

Commit

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

Co-authored-by: Microsoft Graph DevX Tooling <[email protected]>
  • Loading branch information
andrueastman and Microsoft Graph DevX Tooling authored Mar 19, 2024
1 parent 39ed80c commit ba4c72b
Show file tree
Hide file tree
Showing 12,517 changed files with 278,328 additions and 136,632 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
84 changes: 62 additions & 22 deletions src/generated/Admin/AdminRequestBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// <auto-generated/>
using ApiSdk.Admin.Edge;
using ApiSdk.Admin.Microsoft365Apps;
using ApiSdk.Admin.People;
using ApiSdk.Admin.ServiceAnnouncement;
using ApiSdk.Admin.Sharepoint;
Expand All @@ -22,12 +23,14 @@ namespace ApiSdk.Admin {
/// <summary>
/// Provides operations to manage the admin singleton.
/// </summary>
public class AdminRequestBuilder : BaseCliRequestBuilder {
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() {
/// <returns>A <see 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.";
var builder = new EdgeRequestBuilder(PathParameters);
Expand All @@ -50,8 +53,9 @@ public Command BuildEdgeNavCommand() {
/// <summary>
/// Get admin
/// </summary>
/// <returns>A <cref="Command"></returns>
public Command BuildGetCommand() {
/// <returns>A <see cref="Command"/></returns>
public Command BuildGetCommand()
{
var command = new Command("get");
command.Description = "Get admin";
var selectOption = new Option<string[]>("--select", description: "Select properties to be returned") {
Expand Down Expand Up @@ -93,10 +97,36 @@ public Command BuildGetCommand() {
return command;
}
/// <summary>
/// Provides operations to manage the microsoft365Apps property of the microsoft.graph.admin entity.
/// </summary>
/// <returns>A <see cref="Command"/></returns>
public Command BuildMicrosoft365AppsNavCommand()
{
var command = new Command("microsoft365-apps");
command.Description = "Provides operations to manage the microsoft365Apps property of the microsoft.graph.admin entity.";
var builder = new Microsoft365AppsRequestBuilder(PathParameters);
var execCommands = new List<Command>();
var nonExecCommands = new List<Command>();
execCommands.Add(builder.BuildDeleteCommand());
execCommands.Add(builder.BuildGetCommand());
nonExecCommands.Add(builder.BuildInstallationOptionsNavCommand());
execCommands.Add(builder.BuildPatchCommand());
foreach (var cmd in execCommands)
{
command.AddCommand(cmd);
}
foreach (var cmd in nonExecCommands)
{
command.AddCommand(cmd);
}
return command;
}
/// <summary>
/// Update admin
/// </summary>
/// <returns>A <cref="Command"></returns>
public Command BuildPatchCommand() {
/// <returns>A <see cref="Command"/></returns>
public Command BuildPatchCommand()
{
var command = new Command("patch");
command.Description = "Update admin";
var bodyOption = new Option<string>("--body", description: "The request body") {
Expand Down Expand Up @@ -139,8 +169,9 @@ 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() {
/// <returns>A <see 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.";
var builder = new PeopleRequestBuilder(PathParameters);
Expand All @@ -162,8 +193,9 @@ 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() {
/// <returns>A <see 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.";
var builder = new ServiceAnnouncementRequestBuilder(PathParameters);
Expand All @@ -188,8 +220,9 @@ 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() {
/// <returns>A <see 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.";
var builder = new SharepointRequestBuilder(PathParameters);
Expand All @@ -213,25 +246,29 @@ public Command BuildSharepointNavCommand() {
/// 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) {
public AdminRequestBuilder(Dictionary<string, object> pathParameters) : base("{+baseurl}/admin{?%24expand,%24select}", pathParameters)
{
}
/// <summary>
/// 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) {
public AdminRequestBuilder(string rawUrl) : base("{+baseurl}/admin{?%24expand,%24select}", rawUrl)
{
}
/// <summary>
/// Get admin
/// </summary>
/// <returns>A <cref="RequestInformation"></returns>
/// <returns>A <see 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
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<AdminRequestBuilderGetQueryParameters>>? requestConfiguration = default) {
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<AdminRequestBuilderGetQueryParameters>>? requestConfiguration = default)
{
#nullable restore
#else
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<AdminRequestBuilderGetQueryParameters>> requestConfiguration = default) {
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<AdminRequestBuilderGetQueryParameters>> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
requestInfo.Configure(requestConfiguration);
Expand All @@ -241,15 +278,17 @@ public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<Ad
/// <summary>
/// Update admin
/// </summary>
/// <returns>A <cref="RequestInformation"></returns>
/// <returns>A <see 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
#nullable enable
public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Admin body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default) {
public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Admin body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default)
{
#nullable restore
#else
public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Admin body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default) {
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, "{+baseurl}/admin", PathParameters);
Expand All @@ -260,7 +299,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Admin body, Ac
/// <summary>
/// Get admin
/// </summary>
public class AdminRequestBuilderGetQueryParameters {
public class AdminRequestBuilderGetQueryParameters
{
/// <summary>Expand related entities</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
Expand Down
56 changes: 35 additions & 21 deletions src/generated/Admin/Edge/EdgeRequestBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@ namespace ApiSdk.Admin.Edge {
/// <summary>
/// Provides operations to manage the edge property of the microsoft.graph.admin entity.
/// </summary>
public class EdgeRequestBuilder : BaseCliRequestBuilder {
public class EdgeRequestBuilder : BaseCliRequestBuilder
{
/// <summary>
/// Delete navigation property edge for admin
/// </summary>
/// <returns>A <cref="Command"></returns>
public Command BuildDeleteCommand() {
/// <returns>A <see cref="Command"/></returns>
public Command BuildDeleteCommand()
{
var command = new Command("delete");
command.Description = "Delete navigation property edge for admin";
var ifMatchOption = new Option<string[]>("--if-match", description: "ETag") {
Expand All @@ -51,8 +53,9 @@ public Command BuildDeleteCommand() {
/// <summary>
/// A container for Microsoft Edge resources. Read-only.
/// </summary>
/// <returns>A <cref="Command"></returns>
public Command BuildGetCommand() {
/// <returns>A <see cref="Command"/></returns>
public Command BuildGetCommand()
{
var command = new Command("get");
command.Description = "A container for Microsoft Edge resources. Read-only.";
var selectOption = new Option<string[]>("--select", description: "Select properties to be returned") {
Expand Down Expand Up @@ -96,8 +99,9 @@ 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() {
/// <returns>A <see 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.";
var builder = new InternetExplorerModeRequestBuilder(PathParameters);
Expand All @@ -120,8 +124,9 @@ public Command BuildInternetExplorerModeNavCommand() {
/// <summary>
/// Update the navigation property edge in admin
/// </summary>
/// <returns>A <cref="Command"></returns>
public Command BuildPatchCommand() {
/// <returns>A <see cref="Command"/></returns>
public Command BuildPatchCommand()
{
var command = new Command("patch");
command.Description = "Update the navigation property edge in admin";
var bodyOption = new Option<string>("--body", description: "The request body") {
Expand Down Expand Up @@ -165,25 +170,29 @@ public Command BuildPatchCommand() {
/// 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) {
public EdgeRequestBuilder(Dictionary<string, object> pathParameters) : base("{+baseurl}/admin/edge{?%24expand,%24select}", pathParameters)
{
}
/// <summary>
/// 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) {
public EdgeRequestBuilder(string rawUrl) : base("{+baseurl}/admin/edge{?%24expand,%24select}", rawUrl)
{
}
/// <summary>
/// Delete navigation property edge for admin
/// </summary>
/// <returns>A <cref="RequestInformation"></returns>
/// <returns>A <see 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
public RequestInformation ToDeleteRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default) {
public RequestInformation ToDeleteRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default)
{
#nullable restore
#else
public RequestInformation ToDeleteRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default) {
public RequestInformation ToDeleteRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.DELETE, "{+baseurl}/admin/edge", PathParameters);
requestInfo.Configure(requestConfiguration);
Expand All @@ -193,14 +202,16 @@ public RequestInformation ToDeleteRequestInformation(Action<RequestConfiguration
/// <summary>
/// A container for Microsoft Edge resources. Read-only.
/// </summary>
/// <returns>A <cref="RequestInformation"></returns>
/// <returns>A <see 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
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<EdgeRequestBuilderGetQueryParameters>>? requestConfiguration = default) {
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<EdgeRequestBuilderGetQueryParameters>>? requestConfiguration = default)
{
#nullable restore
#else
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<EdgeRequestBuilderGetQueryParameters>> requestConfiguration = default) {
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<EdgeRequestBuilderGetQueryParameters>> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
requestInfo.Configure(requestConfiguration);
Expand All @@ -210,15 +221,17 @@ public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<Ed
/// <summary>
/// Update the navigation property edge in admin
/// </summary>
/// <returns>A <cref="RequestInformation"></returns>
/// <returns>A <see 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
#nullable enable
public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Edge body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default) {
public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Edge body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default)
{
#nullable restore
#else
public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Edge body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default) {
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, "{+baseurl}/admin/edge", PathParameters);
Expand All @@ -229,7 +242,8 @@ public RequestInformation ToPatchRequestInformation(ApiSdk.Models.Edge body, Act
/// <summary>
/// A container for Microsoft Edge resources. Read-only.
/// </summary>
public class EdgeRequestBuilderGetQueryParameters {
public class EdgeRequestBuilderGetQueryParameters
{
/// <summary>Expand related entities</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
Expand Down
Loading

0 comments on commit ba4c72b

Please sign in to comment.