Skip to content

Commit 5e39ec0

Browse files
Microsoft Graph DevX ToolingMicrosoft Graph DevX Tooling
authored andcommitted
feat(generation): update request builders and models
Update generated files with build 199559
1 parent e4a6341 commit 5e39ec0

File tree

156 files changed

+12298
-547
lines changed

Some content is hidden

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

156 files changed

+12298
-547
lines changed

src/Microsoft.Graph/Generated/Chats/Item/Messages/MessagesRequestBuilder.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ public MessagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b
8484
return await RequestAdapter.SendAsync<global::Microsoft.Graph.Models.ChatMessageCollectionResponse>(requestInfo, global::Microsoft.Graph.Models.ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
8585
}
8686
/// <summary>
87-
/// Send a new chatMessage in the specified channel or a chat.
88-
/// Find more info here <see href="https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0" />
87+
/// 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.
88+
/// Find more info here <see href="https://learn.microsoft.com/graph/api/chat-post-messages?view=graph-rest-1.0" />
8989
/// </summary>
9090
/// <returns>A <see cref="global::Microsoft.Graph.Models.ChatMessage"/></returns>
9191
/// <param name="body">The request body</param>
@@ -129,7 +129,7 @@ public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<gl
129129
return requestInfo;
130130
}
131131
/// <summary>
132-
/// Send a new chatMessage in the specified channel or a chat.
132+
/// 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.
133133
/// </summary>
134134
/// <returns>A <see cref="RequestInformation"/></returns>
135135
/// <param name="body">The request body</param>

src/Microsoft.Graph/Generated/Communications/CommunicationsRequestBuilder.cs

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
#pragma warning disable CS0618
33
using Microsoft.Graph.Communications.CallRecords;
44
using Microsoft.Graph.Communications.Calls;
5+
using Microsoft.Graph.Communications.GetAllOnlineMeetingMessages;
56
using Microsoft.Graph.Communications.GetPresencesByUserId;
7+
using Microsoft.Graph.Communications.OnlineMeetingConversations;
68
using Microsoft.Graph.Communications.OnlineMeetings;
79
using Microsoft.Graph.Communications.Presences;
810
using Microsoft.Graph.Models.ODataErrors;
@@ -33,11 +35,21 @@ public partial class CommunicationsRequestBuilder : BaseRequestBuilder
3335
{
3436
get => new global::Microsoft.Graph.Communications.Calls.CallsRequestBuilder(PathParameters, RequestAdapter);
3537
}
38+
/// <summary>Provides operations to call the getAllOnlineMeetingMessages method.</summary>
39+
public global::Microsoft.Graph.Communications.GetAllOnlineMeetingMessages.GetAllOnlineMeetingMessagesRequestBuilder GetAllOnlineMeetingMessages
40+
{
41+
get => new global::Microsoft.Graph.Communications.GetAllOnlineMeetingMessages.GetAllOnlineMeetingMessagesRequestBuilder(PathParameters, RequestAdapter);
42+
}
3643
/// <summary>Provides operations to call the getPresencesByUserId method.</summary>
3744
public global::Microsoft.Graph.Communications.GetPresencesByUserId.GetPresencesByUserIdRequestBuilder GetPresencesByUserId
3845
{
3946
get => new global::Microsoft.Graph.Communications.GetPresencesByUserId.GetPresencesByUserIdRequestBuilder(PathParameters, RequestAdapter);
4047
}
48+
/// <summary>Provides operations to manage the onlineMeetingConversations property of the microsoft.graph.cloudCommunications entity.</summary>
49+
public global::Microsoft.Graph.Communications.OnlineMeetingConversations.OnlineMeetingConversationsRequestBuilder OnlineMeetingConversations
50+
{
51+
get => new global::Microsoft.Graph.Communications.OnlineMeetingConversations.OnlineMeetingConversationsRequestBuilder(PathParameters, RequestAdapter);
52+
}
4153
/// <summary>Provides operations to manage the onlineMeetings property of the microsoft.graph.cloudCommunications entity.</summary>
4254
public global::Microsoft.Graph.Communications.OnlineMeetings.OnlineMeetingsRequestBuilder OnlineMeetings
4355
{
@@ -91,7 +103,7 @@ public CommunicationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapte
91103
/// Update communications
92104
/// </summary>
93105
/// <returns>A <see cref="global::Microsoft.Graph.Models.CloudCommunications"/></returns>
94-
/// <param name="body">The request body</param>
106+
/// <param name="body">Represents a container that exposes navigation properties for cloud communications resources.</param>
95107
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
96108
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
97109
/// <exception cref="global::Microsoft.Graph.Models.ODataErrors.ODataError">When receiving a 4XX or 5XX status code</exception>
@@ -135,7 +147,7 @@ public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<gl
135147
/// Update communications
136148
/// </summary>
137149
/// <returns>A <see cref="RequestInformation"/></returns>
138-
/// <param name="body">The request body</param>
150+
/// <param name="body">Represents a container that exposes navigation properties for cloud communications resources.</param>
139151
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
140152
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
141153
#nullable enable
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
// <auto-generated/>
2+
#pragma warning disable CS0618
3+
using Microsoft.Graph.Models;
4+
using Microsoft.Kiota.Abstractions.Extensions;
5+
using Microsoft.Kiota.Abstractions.Serialization;
6+
using System.Collections.Generic;
7+
using System.IO;
8+
using System;
9+
namespace Microsoft.Graph.Communications.GetAllOnlineMeetingMessages
10+
{
11+
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
12+
#pragma warning disable CS1591
13+
public partial class GetAllOnlineMeetingMessagesGetResponse : global::Microsoft.Graph.Models.BaseCollectionPaginationCountResponse, IParsable
14+
#pragma warning restore CS1591
15+
{
16+
/// <summary>The value property</summary>
17+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
18+
#nullable enable
19+
public List<global::Microsoft.Graph.Models.EngagementConversationMessage>? Value
20+
{
21+
get { return BackingStore?.Get<List<global::Microsoft.Graph.Models.EngagementConversationMessage>?>("value"); }
22+
set { BackingStore?.Set("value", value); }
23+
}
24+
#nullable restore
25+
#else
26+
public List<global::Microsoft.Graph.Models.EngagementConversationMessage> Value
27+
{
28+
get { return BackingStore?.Get<List<global::Microsoft.Graph.Models.EngagementConversationMessage>>("value"); }
29+
set { BackingStore?.Set("value", value); }
30+
}
31+
#endif
32+
/// <summary>
33+
/// Creates a new instance of the appropriate class based on discriminator value
34+
/// </summary>
35+
/// <returns>A <see cref="global::Microsoft.Graph.Communications.GetAllOnlineMeetingMessages.GetAllOnlineMeetingMessagesGetResponse"/></returns>
36+
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
37+
public static new global::Microsoft.Graph.Communications.GetAllOnlineMeetingMessages.GetAllOnlineMeetingMessagesGetResponse CreateFromDiscriminatorValue(IParseNode parseNode)
38+
{
39+
if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode));
40+
return new global::Microsoft.Graph.Communications.GetAllOnlineMeetingMessages.GetAllOnlineMeetingMessagesGetResponse();
41+
}
42+
/// <summary>
43+
/// The deserialization information for the current model
44+
/// </summary>
45+
/// <returns>A IDictionary&lt;string, Action&lt;IParseNode&gt;&gt;</returns>
46+
public override IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
47+
{
48+
return new Dictionary<string, Action<IParseNode>>(base.GetFieldDeserializers())
49+
{
50+
{ "value", n => { Value = n.GetCollectionOfObjectValues<global::Microsoft.Graph.Models.EngagementConversationMessage>(global::Microsoft.Graph.Models.EngagementConversationMessage.CreateFromDiscriminatorValue)?.AsList(); } },
51+
};
52+
}
53+
/// <summary>
54+
/// Serializes information the current object
55+
/// </summary>
56+
/// <param name="writer">Serialization writer to use to serialize this model</param>
57+
public override void Serialize(ISerializationWriter writer)
58+
{
59+
if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
60+
base.Serialize(writer);
61+
writer.WriteCollectionOfObjectValues<global::Microsoft.Graph.Models.EngagementConversationMessage>("value", Value);
62+
}
63+
}
64+
}
65+
#pragma warning restore CS0618

0 commit comments

Comments
 (0)