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

Commit a86f9cc

Browse files
andrueastmanMicrosoft Graph DevX Tooling
andauthored
Update generated files with build 119223 (#305)
Co-authored-by: Microsoft Graph DevX Tooling <[email protected]>
1 parent a5a154b commit a86f9cc

File tree

1,212 files changed

+105078
-2195
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,212 files changed

+105078
-2195
lines changed

src/generated/Chats/GetAllMessages/GetAllMessagesRequestBuilder.cs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ public class GetAllMessagesRequestBuilder : BaseCliRequestBuilder {
2323
public Command BuildGetCommand() {
2424
var command = new Command("get");
2525
command.Description = "Invoke function getAllMessages";
26+
var modelOption = new Option<string>("--model", description: "The payment model for the API") {
27+
};
28+
modelOption.IsRequired = false;
29+
command.AddOption(modelOption);
2630
var topOption = new Option<int?>("--top", description: "Show only the first n items") {
2731
};
2832
topOption.IsRequired = false;
@@ -69,6 +73,7 @@ public Command BuildGetCommand() {
6973
var allOption = new Option<bool>("--all");
7074
command.AddOption(allOption);
7175
command.SetHandler(async (invocationContext) => {
76+
var model = invocationContext.ParseResult.GetValueForOption(modelOption);
7277
var top = invocationContext.ParseResult.GetValueForOption(topOption);
7378
var skip = invocationContext.ParseResult.GetValueForOption(skipOption);
7479
var search = invocationContext.ParseResult.GetValueForOption(searchOption);
@@ -86,6 +91,7 @@ public Command BuildGetCommand() {
8691
var cancellationToken = invocationContext.GetCancellationToken();
8792
var reqAdapter = invocationContext.GetRequestAdapter();
8893
var requestInfo = ToGetRequestInformation(q => {
94+
if (!string.IsNullOrEmpty(model)) q.QueryParameters.Model = model;
8995
q.QueryParameters.Top = top;
9096
q.QueryParameters.Skip = skip;
9197
if (!string.IsNullOrEmpty(search)) q.QueryParameters.Search = search;
@@ -118,7 +124,7 @@ public Command BuildGetCommand() {
118124
/// Instantiates a new GetAllMessagesRequestBuilder and sets the default values.
119125
/// </summary>
120126
/// <param name="pathParameters">Path parameters for the request</param>
121-
public GetAllMessagesRequestBuilder(Dictionary<string, object> pathParameters) : base("{+baseurl}/chats/getAllMessages(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", pathParameters) {
127+
public GetAllMessagesRequestBuilder(Dictionary<string, object> pathParameters) : base("{+baseurl}/chats/getAllMessages(){?model*,%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", pathParameters) {
122128
}
123129
/// <summary>
124130
/// Invoke function getAllMessages
@@ -162,6 +168,14 @@ public class GetAllMessagesRequestBuilderGetQueryParameters {
162168
#else
163169
[QueryParameter("%24filter")]
164170
public string Filter { get; set; }
171+
#endif
172+
/// <summary>The payment model for the API</summary>
173+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
174+
#nullable enable
175+
public string? Model { get; set; }
176+
#nullable restore
177+
#else
178+
public string Model { get; set; }
165179
#endif
166180
/// <summary>Order items by property values</summary>
167181
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
using ApiSdk.Models;
2+
using Microsoft.Kiota.Abstractions.Serialization;
3+
using System.Collections.Generic;
4+
using System.IO;
5+
using System.Linq;
6+
using System;
7+
namespace ApiSdk.Chats.Item.InstalledApps.Item.Upgrade {
8+
public class UpgradePostRequestBody : IAdditionalDataHolder, IParsable {
9+
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
10+
public IDictionary<string, object> AdditionalData { get; set; }
11+
/// <summary>The consentedPermissionSet property</summary>
12+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
13+
#nullable enable
14+
public TeamsAppPermissionSet? ConsentedPermissionSet { get; set; }
15+
#nullable restore
16+
#else
17+
public TeamsAppPermissionSet ConsentedPermissionSet { get; set; }
18+
#endif
19+
/// <summary>
20+
/// Instantiates a new upgradePostRequestBody and sets the default values.
21+
/// </summary>
22+
public UpgradePostRequestBody() {
23+
AdditionalData = new Dictionary<string, object>();
24+
}
25+
/// <summary>
26+
/// Creates a new instance of the appropriate class based on discriminator value
27+
/// </summary>
28+
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
29+
public static UpgradePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) {
30+
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
31+
return new UpgradePostRequestBody();
32+
}
33+
/// <summary>
34+
/// The deserialization information for the current model
35+
/// </summary>
36+
public IDictionary<string, Action<IParseNode>> GetFieldDeserializers() {
37+
return new Dictionary<string, Action<IParseNode>> {
38+
{"consentedPermissionSet", n => { ConsentedPermissionSet = n.GetObjectValue<TeamsAppPermissionSet>(TeamsAppPermissionSet.CreateFromDiscriminatorValue); } },
39+
};
40+
}
41+
/// <summary>
42+
/// Serializes information the current object
43+
/// </summary>
44+
/// <param name="writer">Serialization writer to use to serialize this model</param>
45+
public void Serialize(ISerializationWriter writer) {
46+
_ = writer ?? throw new ArgumentNullException(nameof(writer));
47+
writer.WriteObjectValue<TeamsAppPermissionSet>("consentedPermissionSet", ConsentedPermissionSet);
48+
writer.WriteAdditionalData(AdditionalData);
49+
}
50+
}
51+
}

src/generated/Chats/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,25 @@ public Command BuildPostCommand() {
3232
};
3333
teamsAppInstallationIdOption.IsRequired = true;
3434
command.AddOption(teamsAppInstallationIdOption);
35+
var bodyOption = new Option<string>("--body", description: "The request body") {
36+
};
37+
bodyOption.IsRequired = true;
38+
command.AddOption(bodyOption);
3539
command.SetHandler(async (invocationContext) => {
3640
var chatId = invocationContext.ParseResult.GetValueForOption(chatIdOption);
3741
var teamsAppInstallationId = invocationContext.ParseResult.GetValueForOption(teamsAppInstallationIdOption);
42+
var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty;
3843
var cancellationToken = invocationContext.GetCancellationToken();
3944
var reqAdapter = invocationContext.GetRequestAdapter();
40-
var requestInfo = ToPostRequestInformation(q => {
45+
using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body));
46+
var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream);
47+
var model = parseNode.GetObjectValue<UpgradePostRequestBody>(UpgradePostRequestBody.CreateFromDiscriminatorValue);
48+
if (model is null) return; // Cannot create a POST request from a null model.
49+
var requestInfo = ToPostRequestInformation(model, q => {
4150
});
4251
if (chatId is not null) requestInfo.PathParameters.Add("chat%2Did", chatId);
4352
if (teamsAppInstallationId is not null) requestInfo.PathParameters.Add("teamsAppInstallation%2Did", teamsAppInstallationId);
53+
requestInfo.SetContentFromParsable(reqAdapter, "application/json", model);
4454
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>> {
4555
{"4XX", ODataError.CreateFromDiscriminatorValue},
4656
{"5XX", ODataError.CreateFromDiscriminatorValue},
@@ -59,14 +69,16 @@ public UpgradeRequestBuilder(Dictionary<string, object> pathParameters) : base("
5969
/// <summary>
6070
/// Upgrade an app installation within a chat.
6171
/// </summary>
72+
/// <param name="body">The request body</param>
6273
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
6374
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
6475
#nullable enable
65-
public RequestInformation ToPostRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default) {
76+
public RequestInformation ToPostRequestInformation(UpgradePostRequestBody body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default) {
6677
#nullable restore
6778
#else
68-
public RequestInformation ToPostRequestInformation(Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default) {
79+
public RequestInformation ToPostRequestInformation(UpgradePostRequestBody body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default) {
6980
#endif
81+
_ = body ?? throw new ArgumentNullException(nameof(body));
7082
var requestInfo = new RequestInformation {
7183
HttpMethod = Method.POST,
7284
UrlTemplate = UrlTemplate,

src/generated/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@ public Command BuildDeleteCommand() {
5959
return command;
6060
}
6161
/// <summary>
62-
/// Retrieve a conversationMember from a chat.
63-
/// Find more info here <see href="https://docs.microsoft.com/graph/api/chat-get-members?view=graph-rest-1.0" />
62+
/// Retrieve a conversationMember from a chat or channel.
63+
/// Find more info here <see href="https://docs.microsoft.com/graph/api/conversationmember-get?view=graph-rest-1.0" />
6464
/// </summary>
6565
public Command BuildGetCommand() {
6666
var command = new Command("get");
67-
command.Description = "Retrieve a conversationMember from a chat.\n\nFind more info here:\n https://docs.microsoft.com/graph/api/chat-get-members?view=graph-rest-1.0";
67+
command.Description = "Retrieve a conversationMember from a chat or channel.\n\nFind more info here:\n https://docs.microsoft.com/graph/api/conversationmember-get?view=graph-rest-1.0";
6868
var chatIdOption = new Option<string>("--chat-id", description: "The unique identifier of chat") {
6969
};
7070
chatIdOption.IsRequired = true;
@@ -221,7 +221,7 @@ public RequestInformation ToDeleteRequestInformation(Action<RequestConfiguration
221221
return requestInfo;
222222
}
223223
/// <summary>
224-
/// Retrieve a conversationMember from a chat.
224+
/// Retrieve a conversationMember from a chat or channel.
225225
/// </summary>
226226
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
227227
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -275,7 +275,7 @@ public RequestInformation ToPatchRequestInformation(ConversationMember body, Act
275275
return requestInfo;
276276
}
277277
/// <summary>
278-
/// Retrieve a conversationMember from a chat.
278+
/// Retrieve a conversationMember from a chat or channel.
279279
/// </summary>
280280
public class ConversationMemberItemRequestBuilderGetQueryParameters {
281281
/// <summary>Expand related entities</summary>

src/generated/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ public Command BuildCountNavCommand() {
5252
return command;
5353
}
5454
/// <summary>
55-
/// Create a new reply to a chatMessage in a specified channel.
56-
/// Find more info here <see href="https://docs.microsoft.com/graph/api/channel-post-messagereply?view=graph-rest-1.0" />
55+
/// Send a new reply to a chatMessage in a specified channel.
56+
/// Find more info here <see href="https://docs.microsoft.com/graph/api/chatmessage-post-replies?view=graph-rest-1.0" />
5757
/// </summary>
5858
public Command BuildCreateCommand() {
5959
var command = new Command("create");
60-
command.Description = "Create a new reply to a chatMessage in a specified channel.\n\nFind more info here:\n https://docs.microsoft.com/graph/api/channel-post-messagereply?view=graph-rest-1.0";
60+
command.Description = "Send a new reply to a chatMessage in a specified channel.\n\nFind more info here:\n https://docs.microsoft.com/graph/api/chatmessage-post-replies?view=graph-rest-1.0";
6161
var chatIdOption = new Option<string>("--chat-id", description: "The unique identifier of chat") {
6262
};
6363
chatIdOption.IsRequired = true;
@@ -280,7 +280,7 @@ public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<Re
280280
return requestInfo;
281281
}
282282
/// <summary>
283-
/// Create a new reply to a chatMessage in a specified channel.
283+
/// Send a new reply to a chatMessage in a specified channel.
284284
/// </summary>
285285
/// <param name="body">The request body</param>
286286
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>

src/generated/DeviceAppManagement/AndroidManagedAppProtections/AndroidManagedAppProtectionsRequestBuilder.cs

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,12 @@ public Command BuildCountNavCommand() {
5151
return command;
5252
}
5353
/// <summary>
54-
/// Create new navigation property to androidManagedAppProtections for deviceAppManagement
54+
/// Create a new androidManagedAppProtection object.
55+
/// Find more info here <see href="https://docs.microsoft.com/graph/api/intune-mam-androidmanagedappprotection-create?view=graph-rest-1.0" />
5556
/// </summary>
5657
public Command BuildCreateCommand() {
5758
var command = new Command("create");
58-
command.Description = "Create new navigation property to androidManagedAppProtections for deviceAppManagement";
59+
command.Description = "Create a new androidManagedAppProtection object.\n\nFind more info here:\n https://docs.microsoft.com/graph/api/intune-mam-androidmanagedappprotection-create?view=graph-rest-1.0";
5960
var bodyOption = new Option<string>("--body", description: "The request body") {
6061
};
6162
bodyOption.IsRequired = true;
@@ -102,11 +103,12 @@ public Command BuildCreateCommand() {
102103
return command;
103104
}
104105
/// <summary>
105-
/// Android managed app policies.
106+
/// List properties and relationships of the androidManagedAppProtection objects.
107+
/// Find more info here <see href="https://docs.microsoft.com/graph/api/intune-mam-androidmanagedappprotection-list?view=graph-rest-1.0" />
106108
/// </summary>
107109
public Command BuildListCommand() {
108110
var command = new Command("list");
109-
command.Description = "Android managed app policies.";
111+
command.Description = "List properties and relationships of the androidManagedAppProtection objects.\n\nFind more info here:\n https://docs.microsoft.com/graph/api/intune-mam-androidmanagedappprotection-list?view=graph-rest-1.0";
110112
var topOption = new Option<int?>("--top", description: "Show only the first n items") {
111113
};
112114
topOption.IsRequired = false;
@@ -212,7 +214,7 @@ public Command BuildListCommand() {
212214
public AndroidManagedAppProtectionsRequestBuilder(Dictionary<string, object> pathParameters) : base("{+baseurl}/deviceAppManagement/androidManagedAppProtections{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) {
213215
}
214216
/// <summary>
215-
/// Android managed app policies.
217+
/// List properties and relationships of the androidManagedAppProtection objects.
216218
/// </summary>
217219
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
218220
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -238,7 +240,7 @@ public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<An
238240
return requestInfo;
239241
}
240242
/// <summary>
241-
/// Create new navigation property to androidManagedAppProtections for deviceAppManagement
243+
/// Create a new androidManagedAppProtection object.
242244
/// </summary>
243245
/// <param name="body">The request body</param>
244246
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
@@ -266,7 +268,7 @@ public RequestInformation ToPostRequestInformation(AndroidManagedAppProtection b
266268
return requestInfo;
267269
}
268270
/// <summary>
269-
/// Android managed app policies.
271+
/// List properties and relationships of the androidManagedAppProtection objects.
270272
/// </summary>
271273
public class AndroidManagedAppProtectionsRequestBuilderGetQueryParameters {
272274
/// <summary>Include count of items</summary>

0 commit comments

Comments
 (0)