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

Commit e440763

Browse files
andrueastmanMicrosoft Graph DevX Tooling
andauthored
Update generated files with build 131601 (#418)
Co-authored-by: Microsoft Graph DevX Tooling <GraphTooling@service.microsoft.com>
1 parent a31673a commit e440763

File tree

326 files changed

+5312
-1184
lines changed

Some content is hidden

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

326 files changed

+5312
-1184
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ public Command BuildDeleteCommand() {
6060
return command;
6161
}
6262
/// <summary>
63-
/// Retrieve a conversationMember from a chat or channel.
64-
/// Find more info here <see href="https://learn.microsoft.com/graph/api/conversationmember-get?view=graph-rest-1.0" />
63+
/// Retrieve a conversationMember from a chat.
64+
/// Find more info here <see href="https://learn.microsoft.com/graph/api/chat-get-members?view=graph-rest-1.0" />
6565
/// </summary>
6666
public Command BuildGetCommand() {
6767
var command = new Command("get");
68-
command.Description = "Retrieve a conversationMember from a chat or channel.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/conversationmember-get?view=graph-rest-1.0";
68+
command.Description = "Retrieve a conversationMember from a chat.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/chat-get-members?view=graph-rest-1.0";
6969
var chatIdOption = new Option<string>("--chat-id", description: "The unique identifier of chat") {
7070
};
7171
chatIdOption.IsRequired = true;
@@ -200,7 +200,7 @@ public RequestInformation ToDeleteRequestInformation(Action<RequestConfiguration
200200
return requestInfo;
201201
}
202202
/// <summary>
203-
/// Retrieve a conversationMember from a chat or channel.
203+
/// Retrieve a conversationMember from a chat.
204204
/// </summary>
205205
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
206206
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -234,7 +234,7 @@ public RequestInformation ToPatchRequestInformation(ConversationMember body, Act
234234
return requestInfo;
235235
}
236236
/// <summary>
237-
/// Retrieve a conversationMember from a chat or channel.
237+
/// Retrieve a conversationMember from a chat.
238238
/// </summary>
239239
public class ConversationMemberItemRequestBuilderGetQueryParameters {
240240
/// <summary>Expand related entities</summary>

src/generated/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,12 @@ public Command BuildCreateCommand() {
9797
return command;
9898
}
9999
/// <summary>
100-
/// List all resource-specific permission grants on the chat. This list specifies the Microsoft Entra apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has.
100+
/// List all resource-specific permission grants on the chat. This list specifies the Microsoft Entra apps that have access to the chat, along with the corresponding resource-specific access that each app has.
101101
/// Find more info here <see href="https://learn.microsoft.com/graph/api/chat-list-permissiongrants?view=graph-rest-1.0" />
102102
/// </summary>
103103
public Command BuildListCommand() {
104104
var command = new Command("list");
105-
command.Description = "List all resource-specific permission grants on the chat. This list specifies the Microsoft Entra apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/chat-list-permissiongrants?view=graph-rest-1.0";
105+
command.Description = "List all resource-specific permission grants on the chat. This list specifies the Microsoft Entra apps that have access to the chat, along with the corresponding resource-specific access that each app has.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/chat-list-permissiongrants?view=graph-rest-1.0";
106106
var chatIdOption = new Option<string>("--chat-id", description: "The unique identifier of chat") {
107107
};
108108
chatIdOption.IsRequired = true;
@@ -208,7 +208,7 @@ public PermissionGrantsRequestBuilder(Dictionary<string, object> pathParameters)
208208
public PermissionGrantsRequestBuilder(string rawUrl) : base("{+baseurl}/chats/{chat%2Did}/permissionGrants{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) {
209209
}
210210
/// <summary>
211-
/// List all resource-specific permission grants on the chat. This list specifies the Microsoft Entra apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has.
211+
/// List all resource-specific permission grants on the chat. This list specifies the Microsoft Entra apps that have access to the chat, along with the corresponding resource-specific access that each app has.
212212
/// </summary>
213213
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
214214
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -242,7 +242,7 @@ public RequestInformation ToPostRequestInformation(ResourceSpecificPermissionGra
242242
return requestInfo;
243243
}
244244
/// <summary>
245-
/// List all resource-specific permission grants on the chat. This list specifies the Microsoft Entra apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has.
245+
/// List all resource-specific permission grants on the chat. This list specifies the Microsoft Entra apps that have access to the chat, along with the corresponding resource-specific access that each app has.
246246
/// </summary>
247247
public class PermissionGrantsRequestBuilderGetQueryParameters {
248248
/// <summary>Include count of items</summary>

src/generated/Chats/Item/SendActivityNotification/SendActivityNotificationPostRequestBody.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@ public class SendActivityNotificationPostRequestBody : IAdditionalDataHolder, IP
3434
#nullable restore
3535
#else
3636
public TeamworkNotificationRecipient Recipient { get; set; }
37+
#endif
38+
/// <summary>The teamsAppId property</summary>
39+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
40+
#nullable enable
41+
public string? TeamsAppId { get; set; }
42+
#nullable restore
43+
#else
44+
public string TeamsAppId { get; set; }
3745
#endif
3846
/// <summary>The templateParameters property</summary>
3947
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -74,6 +82,7 @@ public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers() {
7482
{"chainId", n => { ChainId = n.GetLongValue(); } },
7583
{"previewText", n => { PreviewText = n.GetObjectValue<ItemBody>(ItemBody.CreateFromDiscriminatorValue); } },
7684
{"recipient", n => { Recipient = n.GetObjectValue<TeamworkNotificationRecipient>(TeamworkNotificationRecipient.CreateFromDiscriminatorValue); } },
85+
{"teamsAppId", n => { TeamsAppId = n.GetStringValue(); } },
7786
{"templateParameters", n => { TemplateParameters = n.GetCollectionOfObjectValues<ApiSdk.Models.KeyValuePair>(ApiSdk.Models.KeyValuePair.CreateFromDiscriminatorValue)?.ToList(); } },
7887
{"topic", n => { Topic = n.GetObjectValue<TeamworkActivityTopic>(TeamworkActivityTopic.CreateFromDiscriminatorValue); } },
7988
};
@@ -88,6 +97,7 @@ public virtual void Serialize(ISerializationWriter writer) {
8897
writer.WriteLongValue("chainId", ChainId);
8998
writer.WriteObjectValue<ItemBody>("previewText", PreviewText);
9099
writer.WriteObjectValue<TeamworkNotificationRecipient>("recipient", Recipient);
100+
writer.WriteStringValue("teamsAppId", TeamsAppId);
91101
writer.WriteCollectionOfObjectValues<ApiSdk.Models.KeyValuePair>("templateParameters", TemplateParameters);
92102
writer.WriteObjectValue<TeamworkActivityTopic>("topic", Topic);
93103
writer.WriteAdditionalData(AdditionalData);

src/generated/Communications/Calls/CallsRequestBuilder.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ public Tuple<List<Command>, List<Command>> BuildCommand() {
4646
commands.Add(builder.BuildRecordResponseNavCommand());
4747
commands.Add(builder.BuildRedirectNavCommand());
4848
commands.Add(builder.BuildRejectNavCommand());
49+
commands.Add(builder.BuildSendDtmfTonesNavCommand());
4950
commands.Add(builder.BuildSubscribeToToneNavCommand());
5051
commands.Add(builder.BuildTransferNavCommand());
5152
commands.Add(builder.BuildUnmuteNavCommand());

src/generated/Communications/Calls/Item/CallItemRequestBuilder.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
using ApiSdk.Communications.Calls.Item.RecordResponse;
1414
using ApiSdk.Communications.Calls.Item.Redirect;
1515
using ApiSdk.Communications.Calls.Item.Reject;
16+
using ApiSdk.Communications.Calls.Item.SendDtmfTones;
1617
using ApiSdk.Communications.Calls.Item.SubscribeToTone;
1718
using ApiSdk.Communications.Calls.Item.Transfer;
1819
using ApiSdk.Communications.Calls.Item.Unmute;
@@ -423,6 +424,21 @@ public Command BuildRejectNavCommand() {
423424
return command;
424425
}
425426
/// <summary>
427+
/// Provides operations to call the sendDtmfTones method.
428+
/// </summary>
429+
public Command BuildSendDtmfTonesNavCommand() {
430+
var command = new Command("send-dtmf-tones");
431+
command.Description = "Provides operations to call the sendDtmfTones method.";
432+
var builder = new SendDtmfTonesRequestBuilder(PathParameters);
433+
var execCommands = new List<Command>();
434+
execCommands.Add(builder.BuildPostCommand());
435+
foreach (var cmd in execCommands)
436+
{
437+
command.AddCommand(cmd);
438+
}
439+
return command;
440+
}
441+
/// <summary>
426442
/// Provides operations to call the subscribeToTone method.
427443
/// </summary>
428444
public Command BuildSubscribeToToneNavCommand() {
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
// <auto-generated/>
2+
using ApiSdk.Models;
3+
using Microsoft.Kiota.Abstractions.Serialization;
4+
using System.Collections.Generic;
5+
using System.IO;
6+
using System.Linq;
7+
using System;
8+
namespace ApiSdk.Communications.Calls.Item.SendDtmfTones {
9+
public class SendDtmfTonesPostRequestBody : IAdditionalDataHolder, IParsable {
10+
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
11+
public IDictionary<string, object> AdditionalData { get; set; }
12+
/// <summary>The clientContext property</summary>
13+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
14+
#nullable enable
15+
public string? ClientContext { get; set; }
16+
#nullable restore
17+
#else
18+
public string ClientContext { get; set; }
19+
#endif
20+
/// <summary>The delayBetweenTonesMs property</summary>
21+
public int? DelayBetweenTonesMs { get; set; }
22+
/// <summary>The tones property</summary>
23+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
24+
#nullable enable
25+
public List<Tone?>? Tones { get; set; }
26+
#nullable restore
27+
#else
28+
public List<Tone?> Tones { get; set; }
29+
#endif
30+
/// <summary>
31+
/// Instantiates a new sendDtmfTonesPostRequestBody and sets the default values.
32+
/// </summary>
33+
public SendDtmfTonesPostRequestBody() {
34+
AdditionalData = new Dictionary<string, object>();
35+
}
36+
/// <summary>
37+
/// Creates a new instance of the appropriate class based on discriminator value
38+
/// </summary>
39+
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
40+
public static SendDtmfTonesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) {
41+
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
42+
return new SendDtmfTonesPostRequestBody();
43+
}
44+
/// <summary>
45+
/// The deserialization information for the current model
46+
/// </summary>
47+
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers() {
48+
return new Dictionary<string, Action<IParseNode>> {
49+
{"clientContext", n => { ClientContext = n.GetStringValue(); } },
50+
{"delayBetweenTonesMs", n => { DelayBetweenTonesMs = n.GetIntValue(); } },
51+
{"tones", n => { Tones = n.GetCollectionOfEnumValues<Tone>()?.ToList(); } },
52+
};
53+
}
54+
/// <summary>
55+
/// Serializes information the current object
56+
/// </summary>
57+
/// <param name="writer">Serialization writer to use to serialize this model</param>
58+
public virtual void Serialize(ISerializationWriter writer) {
59+
_ = writer ?? throw new ArgumentNullException(nameof(writer));
60+
writer.WriteStringValue("clientContext", ClientContext);
61+
writer.WriteIntValue("delayBetweenTonesMs", DelayBetweenTonesMs);
62+
writer.WriteCollectionOfEnumValues<Tone>("tones", Tones);
63+
writer.WriteAdditionalData(AdditionalData);
64+
}
65+
}
66+
}
Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
// <auto-generated/>
2+
using ApiSdk.Models.ODataErrors;
3+
using ApiSdk.Models;
4+
using Microsoft.Kiota.Abstractions.Serialization;
5+
using Microsoft.Kiota.Abstractions;
6+
using Microsoft.Kiota.Cli.Commons.Extensions;
7+
using Microsoft.Kiota.Cli.Commons.IO;
8+
using Microsoft.Kiota.Cli.Commons;
9+
using System.Collections.Generic;
10+
using System.CommandLine;
11+
using System.IO;
12+
using System.Linq;
13+
using System.Text;
14+
using System.Threading.Tasks;
15+
using System.Threading;
16+
using System;
17+
namespace ApiSdk.Communications.Calls.Item.SendDtmfTones {
18+
/// <summary>
19+
/// Provides operations to call the sendDtmfTones method.
20+
/// </summary>
21+
public class SendDtmfTonesRequestBuilder : BaseCliRequestBuilder {
22+
/// <summary>
23+
/// Invoke action sendDtmfTones
24+
/// </summary>
25+
public Command BuildPostCommand() {
26+
var command = new Command("post");
27+
command.Description = "Invoke action sendDtmfTones";
28+
var callIdOption = new Option<string>("--call-id", description: "The unique identifier of call") {
29+
};
30+
callIdOption.IsRequired = true;
31+
command.AddOption(callIdOption);
32+
var bodyOption = new Option<string>("--body", description: "The request body") {
33+
};
34+
bodyOption.IsRequired = true;
35+
command.AddOption(bodyOption);
36+
var outputOption = new Option<FormatterType>("--output", () => FormatterType.JSON);
37+
command.AddOption(outputOption);
38+
var queryOption = new Option<string>("--query");
39+
command.AddOption(queryOption);
40+
command.SetHandler(async (invocationContext) => {
41+
var callId = invocationContext.ParseResult.GetValueForOption(callIdOption);
42+
var body = invocationContext.ParseResult.GetValueForOption(bodyOption) ?? string.Empty;
43+
var output = invocationContext.ParseResult.GetValueForOption(outputOption);
44+
var query = invocationContext.ParseResult.GetValueForOption(queryOption);
45+
IOutputFilter outputFilter = invocationContext.BindingContext.GetService(typeof(IOutputFilter)) as IOutputFilter ?? throw new ArgumentNullException("outputFilter");
46+
IOutputFormatterFactory outputFormatterFactory = invocationContext.BindingContext.GetService(typeof(IOutputFormatterFactory)) as IOutputFormatterFactory ?? throw new ArgumentNullException("outputFormatterFactory");
47+
var cancellationToken = invocationContext.GetCancellationToken();
48+
var reqAdapter = invocationContext.GetRequestAdapter();
49+
using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body));
50+
var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream);
51+
var model = parseNode.GetObjectValue<SendDtmfTonesPostRequestBody>(SendDtmfTonesPostRequestBody.CreateFromDiscriminatorValue);
52+
if (model is null) {
53+
Console.Error.WriteLine("No model data to send.");
54+
return;
55+
}
56+
var requestInfo = ToPostRequestInformation(model, q => {
57+
});
58+
if (callId is not null) requestInfo.PathParameters.Add("call%2Did", callId);
59+
requestInfo.SetContentFromParsable(reqAdapter, "application/json", model);
60+
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>> {
61+
{"4XX", ODataError.CreateFromDiscriminatorValue},
62+
{"5XX", ODataError.CreateFromDiscriminatorValue},
63+
};
64+
var response = await reqAdapter.SendPrimitiveAsync<Stream>(requestInfo, errorMapping: errorMapping, cancellationToken: cancellationToken) ?? Stream.Null;
65+
response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response;
66+
var formatter = outputFormatterFactory.GetFormatter(output);
67+
await formatter.WriteOutputAsync(response, cancellationToken);
68+
});
69+
return command;
70+
}
71+
/// <summary>
72+
/// Instantiates a new SendDtmfTonesRequestBuilder and sets the default values.
73+
/// </summary>
74+
/// <param name="pathParameters">Path parameters for the request</param>
75+
public SendDtmfTonesRequestBuilder(Dictionary<string, object> pathParameters) : base("{+baseurl}/communications/calls/{call%2Did}/sendDtmfTones", pathParameters) {
76+
}
77+
/// <summary>
78+
/// Instantiates a new SendDtmfTonesRequestBuilder and sets the default values.
79+
/// </summary>
80+
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
81+
public SendDtmfTonesRequestBuilder(string rawUrl) : base("{+baseurl}/communications/calls/{call%2Did}/sendDtmfTones", rawUrl) {
82+
}
83+
/// <summary>
84+
/// Invoke action sendDtmfTones
85+
/// </summary>
86+
/// <param name="body">The request body</param>
87+
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
88+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
89+
#nullable enable
90+
public RequestInformation ToPostRequestInformation(SendDtmfTonesPostRequestBody body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default) {
91+
#nullable restore
92+
#else
93+
public RequestInformation ToPostRequestInformation(SendDtmfTonesPostRequestBody body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default) {
94+
#endif
95+
_ = body ?? throw new ArgumentNullException(nameof(body));
96+
var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters);
97+
requestInfo.Configure(requestConfiguration);
98+
requestInfo.Headers.TryAdd("Accept", "application/json");
99+
return requestInfo;
100+
}
101+
}
102+
}

0 commit comments

Comments
 (0)