Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated models and request builders #475

Merged
merged 1 commit into from
Jun 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 4 additions & 4 deletions src/generated/Chats/Item/Messages/MessagesRequestBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@ public Command BuildCountNavCommand()
return command;
}
/// <summary>
/// Send a new chatMessage in the specified channel or a chat.
/// Find more info here <see href="https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0" />
/// Send a new chatMessage in the specified chat. This API can&apos;t create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message.
/// Find more info here <see href="https://learn.microsoft.com/graph/api/chat-post-messages?view=graph-rest-1.0" />
/// </summary>
/// <returns>A <see cref="Command"/></returns>
public Command BuildCreateCommand()
{
var command = new Command("create");
command.Description = "Send a new chatMessage in the specified channel or a chat.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0";
command.Description = "Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/chat-post-messages?view=graph-rest-1.0";
var chatIdOption = new Option<string>("--chat-id", description: "The unique identifier of chat") {
};
chatIdOption.IsRequired = true;
Expand Down Expand Up @@ -267,7 +267,7 @@ public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<Me
return requestInfo;
}
/// <summary>
/// Send a new chatMessage in the specified channel or a chat.
/// Send a new chatMessage in the specified chat. This API can&apos;t create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message.
/// </summary>
/// <returns>A <see cref="RequestInformation"/></returns>
/// <param name="body">The request body</param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ public Command BuildGetCommand()
{
var command = new Command("get");
command.Description = "Get a log of direct routing calls as a collection of directRoutingLogRow entries.";
var fromDateTimeOption = new Option<string>("--from-date-time", description: "Usage: fromDateTime={fromDateTime}") {
var fromDateTimeOption = new Option<DateTimeOffset?>("--from-date-time", description: "Usage: fromDateTime={fromDateTime}") {
};
fromDateTimeOption.IsRequired = true;
command.AddOption(fromDateTimeOption);
var toDateTimeOption = new Option<string>("--to-date-time", description: "Usage: toDateTime={toDateTime}") {
var toDateTimeOption = new Option<DateTimeOffset?>("--to-date-time", description: "Usage: toDateTime={toDateTime}") {
};
toDateTimeOption.IsRequired = true;
command.AddOption(toDateTimeOption);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ public Command BuildGetCommand()
{
var command = new Command("get");
command.Description = "Get log of PSTN calls as a collection of pstnCallLogRow entries.";
var fromDateTimeOption = new Option<string>("--from-date-time", description: "Usage: fromDateTime={fromDateTime}") {
var fromDateTimeOption = new Option<DateTimeOffset?>("--from-date-time", description: "Usage: fromDateTime={fromDateTime}") {
};
fromDateTimeOption.IsRequired = true;
command.AddOption(fromDateTimeOption);
var toDateTimeOption = new Option<string>("--to-date-time", description: "Usage: toDateTime={toDateTime}") {
var toDateTimeOption = new Option<DateTimeOffset?>("--to-date-time", description: "Usage: toDateTime={toDateTime}") {
};
toDateTimeOption.IsRequired = true;
command.AddOption(toDateTimeOption);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,13 @@ public Command BuildDefaultManagedAppProtectionsNavCommand()
}
/// <summary>
/// Read properties and relationships of the deviceAppManagement object.
/// Find more info here <see href="https://learn.microsoft.com/graph/api/intune-policyset-deviceappmanagement-get?view=graph-rest-1.0" />
/// Find more info here <see href="https://learn.microsoft.com/graph/api/intune-books-deviceappmanagement-get?view=graph-rest-1.0" />
/// </summary>
/// <returns>A <see cref="Command"/></returns>
public Command BuildGetCommand()
{
var command = new Command("get");
command.Description = "Read properties and relationships of the deviceAppManagement object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-policyset-deviceappmanagement-get?view=graph-rest-1.0";
command.Description = "Read properties and relationships of the deviceAppManagement object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-books-deviceappmanagement-get?view=graph-rest-1.0";
var selectOption = new Option<string[]>("--select", description: "Select properties to be returned") {
Arity = ArgumentArity.ZeroOrMore
};
Expand Down Expand Up @@ -399,13 +399,13 @@ public Command BuildMobileAppsNavCommand()
}
/// <summary>
/// Update the properties of a deviceAppManagement object.
/// Find more info here <see href="https://learn.microsoft.com/graph/api/intune-apps-deviceappmanagement-update?view=graph-rest-1.0" />
/// Find more info here <see href="https://learn.microsoft.com/graph/api/intune-onboarding-deviceappmanagement-update?view=graph-rest-1.0" />
/// </summary>
/// <returns>A <see cref="Command"/></returns>
public Command BuildPatchCommand()
{
var command = new Command("patch");
command.Description = "Update the properties of a deviceAppManagement object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-apps-deviceappmanagement-update?view=graph-rest-1.0";
command.Description = "Update the properties of a deviceAppManagement object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-onboarding-deviceappmanagement-update?view=graph-rest-1.0";
var bodyOption = new Option<string>("--body", description: "The request body") {
};
bodyOption.IsRequired = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,14 @@ public Command BuildCreateCommand()
return command;
}
/// <summary>
/// List properties and relationships of the managedAppProtection objects.
/// Find more info here <see href="https://learn.microsoft.com/graph/api/intune-mam-managedappprotection-list?view=graph-rest-1.0" />
/// List properties and relationships of the managedAppPolicy objects.
/// Find more info here <see href="https://learn.microsoft.com/graph/api/intune-mam-managedapppolicy-list?view=graph-rest-1.0" />
/// </summary>
/// <returns>A <see cref="Command"/></returns>
public Command BuildListCommand()
{
var command = new Command("list");
command.Description = "List properties and relationships of the managedAppProtection objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-mam-managedappprotection-list?view=graph-rest-1.0";
command.Description = "List properties and relationships of the managedAppPolicy objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-mam-managedapppolicy-list?view=graph-rest-1.0";
var topOption = new Option<int?>("--top", description: "Show only the first n items") {
};
topOption.IsRequired = false;
Expand Down Expand Up @@ -212,7 +212,7 @@ public ManagedAppPoliciesRequestBuilder(string rawUrl) : base("{+baseurl}/device
{
}
/// <summary>
/// List properties and relationships of the managedAppProtection objects.
/// List properties and relationships of the managedAppPolicy objects.
/// </summary>
/// <returns>A <see cref="RequestInformation"/></returns>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
Expand Down Expand Up @@ -252,7 +252,7 @@ public RequestInformation ToPostRequestInformation(ManagedAppPolicy body, Action
return requestInfo;
}
/// <summary>
/// List properties and relationships of the managedAppProtection objects.
/// List properties and relationships of the managedAppPolicy objects.
/// </summary>
public class ManagedAppPoliciesRequestBuilderGetQueryParameters
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,14 @@ public Command BuildDeleteCommand()
return command;
}
/// <summary>
/// Read properties and relationships of the androidManagedAppRegistration object.
/// Find more info here <see href="https://learn.microsoft.com/graph/api/intune-mam-androidmanagedappregistration-get?view=graph-rest-1.0" />
/// Read properties and relationships of the iosManagedAppRegistration object.
/// Find more info here <see href="https://learn.microsoft.com/graph/api/intune-mam-iosmanagedappregistration-get?view=graph-rest-1.0" />
/// </summary>
/// <returns>A <see cref="Command"/></returns>
public Command BuildGetCommand()
{
var command = new Command("get");
command.Description = "Read properties and relationships of the androidManagedAppRegistration object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-mam-androidmanagedappregistration-get?view=graph-rest-1.0";
command.Description = "Read properties and relationships of the iosManagedAppRegistration object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-mam-iosmanagedappregistration-get?view=graph-rest-1.0";
var managedAppRegistrationIdOption = new Option<string>("--managed-app-registration-id", description: "The unique identifier of managedAppRegistration") {
};
managedAppRegistrationIdOption.IsRequired = true;
Expand Down Expand Up @@ -278,7 +278,7 @@ public RequestInformation ToDeleteRequestInformation(Action<RequestConfiguration
return requestInfo;
}
/// <summary>
/// Read properties and relationships of the androidManagedAppRegistration object.
/// Read properties and relationships of the iosManagedAppRegistration object.
/// </summary>
/// <returns>A <see cref="RequestInformation"/></returns>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
Expand Down Expand Up @@ -318,7 +318,7 @@ public RequestInformation ToPatchRequestInformation(ManagedAppRegistration body,
return requestInfo;
}
/// <summary>
/// Read properties and relationships of the androidManagedAppRegistration object.
/// Read properties and relationships of the iosManagedAppRegistration object.
/// </summary>
public class ManagedAppRegistrationItemRequestBuilderGetQueryParameters
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@ public Command BuildCountNavCommand()
return command;
}
/// <summary>
/// Create a new managedEBookAssignment object.
/// Find more info here <see href="https://learn.microsoft.com/graph/api/intune-books-managedebookassignment-create?view=graph-rest-1.0" />
/// Create a new iosVppEBookAssignment object.
/// Find more info here <see href="https://learn.microsoft.com/graph/api/intune-books-iosvppebookassignment-create?view=graph-rest-1.0" />
/// </summary>
/// <returns>A <see cref="Command"/></returns>
public Command BuildCreateCommand()
{
var command = new Command("create");
command.Description = "Create a new managedEBookAssignment object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-books-managedebookassignment-create?view=graph-rest-1.0";
command.Description = "Create a new iosVppEBookAssignment object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-books-iosvppebookassignment-create?view=graph-rest-1.0";
var managedEBookIdOption = new Option<string>("--managed-ebook-id", description: "The unique identifier of managedEBook") {
};
managedEBookIdOption.IsRequired = true;
Expand Down Expand Up @@ -106,14 +106,14 @@ public Command BuildCreateCommand()
return command;
}
/// <summary>
/// List properties and relationships of the iosVppEBookAssignment objects.
/// Find more info here <see href="https://learn.microsoft.com/graph/api/intune-books-iosvppebookassignment-list?view=graph-rest-1.0" />
/// List properties and relationships of the managedEBookAssignment objects.
/// Find more info here <see href="https://learn.microsoft.com/graph/api/intune-books-managedebookassignment-list?view=graph-rest-1.0" />
/// </summary>
/// <returns>A <see cref="Command"/></returns>
public Command BuildListCommand()
{
var command = new Command("list");
command.Description = "List properties and relationships of the iosVppEBookAssignment objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-books-iosvppebookassignment-list?view=graph-rest-1.0";
command.Description = "List properties and relationships of the managedEBookAssignment objects.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-books-managedebookassignment-list?view=graph-rest-1.0";
var managedEBookIdOption = new Option<string>("--managed-ebook-id", description: "The unique identifier of managedEBook") {
};
managedEBookIdOption.IsRequired = true;
Expand Down Expand Up @@ -223,7 +223,7 @@ public AssignmentsRequestBuilder(string rawUrl) : base("{+baseurl}/deviceAppMana
{
}
/// <summary>
/// List properties and relationships of the iosVppEBookAssignment objects.
/// List properties and relationships of the managedEBookAssignment objects.
/// </summary>
/// <returns>A <see cref="RequestInformation"/></returns>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
Expand All @@ -242,7 +242,7 @@ public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<As
return requestInfo;
}
/// <summary>
/// Create a new managedEBookAssignment object.
/// Create a new iosVppEBookAssignment object.
/// </summary>
/// <returns>A <see cref="RequestInformation"/></returns>
/// <param name="body">The request body</param>
Expand All @@ -263,7 +263,7 @@ public RequestInformation ToPostRequestInformation(ManagedEBookAssignment body,
return requestInfo;
}
/// <summary>
/// List properties and relationships of the iosVppEBookAssignment objects.
/// List properties and relationships of the managedEBookAssignment objects.
/// </summary>
public class AssignmentsRequestBuilderGetQueryParameters
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ namespace ApiSdk.DeviceAppManagement.ManagedEBooks.Item.Assignments.Item
public class ManagedEBookAssignmentItemRequestBuilder : BaseCliRequestBuilder
{
/// <summary>
/// Deletes a iosVppEBookAssignment.
/// Find more info here <see href="https://learn.microsoft.com/graph/api/intune-books-iosvppebookassignment-delete?view=graph-rest-1.0" />
/// Deletes a managedEBookAssignment.
/// Find more info here <see href="https://learn.microsoft.com/graph/api/intune-books-managedebookassignment-delete?view=graph-rest-1.0" />
/// </summary>
/// <returns>A <see cref="Command"/></returns>
public Command BuildDeleteCommand()
{
var command = new Command("delete");
command.Description = "Deletes a iosVppEBookAssignment.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-books-iosvppebookassignment-delete?view=graph-rest-1.0";
command.Description = "Deletes a managedEBookAssignment.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-books-managedebookassignment-delete?view=graph-rest-1.0";
var managedEBookIdOption = new Option<string>("--managed-ebook-id", description: "The unique identifier of managedEBook") {
};
managedEBookIdOption.IsRequired = true;
Expand Down Expand Up @@ -64,14 +64,14 @@ public Command BuildDeleteCommand()
return command;
}
/// <summary>
/// Read properties and relationships of the managedEBookAssignment object.
/// Find more info here <see href="https://learn.microsoft.com/graph/api/intune-books-managedebookassignment-get?view=graph-rest-1.0" />
/// Read properties and relationships of the iosVppEBookAssignment object.
/// Find more info here <see href="https://learn.microsoft.com/graph/api/intune-books-iosvppebookassignment-get?view=graph-rest-1.0" />
/// </summary>
/// <returns>A <see cref="Command"/></returns>
public Command BuildGetCommand()
{
var command = new Command("get");
command.Description = "Read properties and relationships of the managedEBookAssignment object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-books-managedebookassignment-get?view=graph-rest-1.0";
command.Description = "Read properties and relationships of the iosVppEBookAssignment object.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/intune-books-iosvppebookassignment-get?view=graph-rest-1.0";
var managedEBookIdOption = new Option<string>("--managed-ebook-id", description: "The unique identifier of managedEBook") {
};
managedEBookIdOption.IsRequired = true;
Expand Down Expand Up @@ -195,7 +195,7 @@ public ManagedEBookAssignmentItemRequestBuilder(string rawUrl) : base("{+baseurl
{
}
/// <summary>
/// Deletes a iosVppEBookAssignment.
/// Deletes a managedEBookAssignment.
/// </summary>
/// <returns>A <see cref="RequestInformation"/></returns>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
Expand All @@ -214,7 +214,7 @@ public RequestInformation ToDeleteRequestInformation(Action<RequestConfiguration
return requestInfo;
}
/// <summary>
/// Read properties and relationships of the managedEBookAssignment object.
/// Read properties and relationships of the iosVppEBookAssignment object.
/// </summary>
/// <returns>A <see cref="RequestInformation"/></returns>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
Expand Down Expand Up @@ -254,7 +254,7 @@ public RequestInformation ToPatchRequestInformation(ManagedEBookAssignment body,
return requestInfo;
}
/// <summary>
/// Read properties and relationships of the managedEBookAssignment object.
/// Read properties and relationships of the iosVppEBookAssignment object.
/// </summary>
public class ManagedEBookAssignmentItemRequestBuilderGetQueryParameters
{
Expand Down
Loading