Skip to content

Commit bf96f7d

Browse files
authored
Merge pull request #1997 from microsoftgraph/kiota/v1.0/pipelinebuild/119223
Generated models and request builders
2 parents 3c034ae + f5dd73a commit bf96f7d

541 files changed

Lines changed: 52713 additions & 422 deletions

File tree

Some content is hidden

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

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ and this project does adheres to [Semantic Versioning](https://semver.org/spec/v
77

88
## [Unreleased]
99

10+
## [5.17.0] - 2023-07-05
11+
12+
- Fixes missing odata cast path for `roomList` in places API.
13+
- Latest metadata updates from 4th July 2023.
14+
1015
## [5.16.0] - 2023-06-27
1116

1217
- Fixes missing `Model` query parameter for Channels.GetAllMessages (https://github.com/microsoftgraph/msgraph-sdk-dotnet/issues/1979)
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
using Microsoft.Graph.Models;
2+
using Microsoft.Kiota.Abstractions.Serialization;
3+
using Microsoft.Kiota.Abstractions.Store;
4+
using System.Collections.Generic;
5+
using System.IO;
6+
using System.Linq;
7+
using System;
8+
namespace Microsoft.Graph.Chats.Item.InstalledApps.Item.Upgrade {
9+
public class UpgradePostRequestBody : IAdditionalDataHolder, IBackedModel, 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 {
12+
get { return BackingStore?.Get<IDictionary<string, object>>("additionalData"); }
13+
set { BackingStore?.Set("additionalData", value); }
14+
}
15+
/// <summary>Stores model information.</summary>
16+
public IBackingStore BackingStore { get; private set; }
17+
/// <summary>The consentedPermissionSet property</summary>
18+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
19+
#nullable enable
20+
public TeamsAppPermissionSet? ConsentedPermissionSet {
21+
get { return BackingStore?.Get<TeamsAppPermissionSet?>("consentedPermissionSet"); }
22+
set { BackingStore?.Set("consentedPermissionSet", value); }
23+
}
24+
#nullable restore
25+
#else
26+
public TeamsAppPermissionSet ConsentedPermissionSet {
27+
get { return BackingStore?.Get<TeamsAppPermissionSet>("consentedPermissionSet"); }
28+
set { BackingStore?.Set("consentedPermissionSet", value); }
29+
}
30+
#endif
31+
/// <summary>
32+
/// Instantiates a new upgradePostRequestBody and sets the default values.
33+
/// </summary>
34+
public UpgradePostRequestBody() {
35+
BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
36+
AdditionalData = new Dictionary<string, object>();
37+
}
38+
/// <summary>
39+
/// Creates a new instance of the appropriate class based on discriminator value
40+
/// </summary>
41+
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
42+
public static UpgradePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) {
43+
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
44+
return new UpgradePostRequestBody();
45+
}
46+
/// <summary>
47+
/// The deserialization information for the current model
48+
/// </summary>
49+
public IDictionary<string, Action<IParseNode>> GetFieldDeserializers() {
50+
return new Dictionary<string, Action<IParseNode>> {
51+
{"consentedPermissionSet", n => { ConsentedPermissionSet = n.GetObjectValue<TeamsAppPermissionSet>(TeamsAppPermissionSet.CreateFromDiscriminatorValue); } },
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 void Serialize(ISerializationWriter writer) {
59+
_ = writer ?? throw new ArgumentNullException(nameof(writer));
60+
writer.WriteObjectValue<TeamsAppPermissionSet>("consentedPermissionSet", ConsentedPermissionSet);
61+
writer.WriteAdditionalData(AdditionalData);
62+
}
63+
}
64+
}

src/Microsoft.Graph/Generated/Chats/Item/InstalledApps/Item/Upgrade/UpgradeRequestBuilder.cs

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,18 @@ public UpgradeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba
3030
/// Upgrade an app installation within a chat.
3131
/// Find more info here <see href="https://docs.microsoft.com/graph/api/chat-teamsappinstallation-upgrade?view=graph-rest-1.0" />
3232
/// </summary>
33+
/// <param name="body">The request body</param>
3334
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
3435
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
3536
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
3637
#nullable enable
37-
public async Task PostAsync(Action<UpgradeRequestBuilderPostRequestConfiguration>? requestConfiguration = default, CancellationToken cancellationToken = default) {
38+
public async Task PostAsync(UpgradePostRequestBody body, Action<UpgradeRequestBuilderPostRequestConfiguration>? requestConfiguration = default, CancellationToken cancellationToken = default) {
3839
#nullable restore
3940
#else
40-
public async Task PostAsync(Action<UpgradeRequestBuilderPostRequestConfiguration> requestConfiguration = default, CancellationToken cancellationToken = default) {
41+
public async Task PostAsync(UpgradePostRequestBody body, Action<UpgradeRequestBuilderPostRequestConfiguration> requestConfiguration = default, CancellationToken cancellationToken = default) {
4142
#endif
42-
var requestInfo = ToPostRequestInformation(requestConfiguration);
43+
_ = body ?? throw new ArgumentNullException(nameof(body));
44+
var requestInfo = ToPostRequestInformation(body, requestConfiguration);
4345
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>> {
4446
{"4XX", ODataError.CreateFromDiscriminatorValue},
4547
{"5XX", ODataError.CreateFromDiscriminatorValue},
@@ -49,19 +51,22 @@ public async Task PostAsync(Action<UpgradeRequestBuilderPostRequestConfiguration
4951
/// <summary>
5052
/// Upgrade an app installation within a chat.
5153
/// </summary>
54+
/// <param name="body">The request body</param>
5255
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
5356
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
5457
#nullable enable
55-
public RequestInformation ToPostRequestInformation(Action<UpgradeRequestBuilderPostRequestConfiguration>? requestConfiguration = default) {
58+
public RequestInformation ToPostRequestInformation(UpgradePostRequestBody body, Action<UpgradeRequestBuilderPostRequestConfiguration>? requestConfiguration = default) {
5659
#nullable restore
5760
#else
58-
public RequestInformation ToPostRequestInformation(Action<UpgradeRequestBuilderPostRequestConfiguration> requestConfiguration = default) {
61+
public RequestInformation ToPostRequestInformation(UpgradePostRequestBody body, Action<UpgradeRequestBuilderPostRequestConfiguration> requestConfiguration = default) {
5962
#endif
63+
_ = body ?? throw new ArgumentNullException(nameof(body));
6064
var requestInfo = new RequestInformation {
6165
HttpMethod = Method.POST,
6266
UrlTemplate = UrlTemplate,
6367
PathParameters = PathParameters,
6468
};
69+
requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body);
6570
if (requestConfiguration != null) {
6671
var requestConfig = new UpgradeRequestBuilderPostRequestConfiguration();
6772
requestConfiguration.Invoke(requestConfig);

src/Microsoft.Graph/Generated/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ public async Task DeleteAsync(Action<ConversationMemberItemRequestBuilderDeleteR
4848
await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken);
4949
}
5050
/// <summary>
51-
/// Retrieve a conversationMember from a chat.
52-
/// Find more info here <see href="https://docs.microsoft.com/graph/api/chat-get-members?view=graph-rest-1.0" />
51+
/// Retrieve a conversationMember from a chat or channel.
52+
/// Find more info here <see href="https://docs.microsoft.com/graph/api/conversationmember-get?view=graph-rest-1.0" />
5353
/// </summary>
5454
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
5555
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
@@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action<ConversationMemberIt
113113
return requestInfo;
114114
}
115115
/// <summary>
116-
/// Retrieve a conversationMember from a chat.
116+
/// Retrieve a conversationMember from a chat or channel.
117117
/// </summary>
118118
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
119119
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -183,7 +183,7 @@ public ConversationMemberItemRequestBuilderDeleteRequestConfiguration() {
183183
}
184184
}
185185
/// <summary>
186-
/// Retrieve a conversationMember from a chat.
186+
/// Retrieve a conversationMember from a chat or channel.
187187
/// </summary>
188188
public class ConversationMemberItemRequestBuilderGetQueryParameters {
189189
/// <summary>Expand related entities</summary>

src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ public async Task<ChatMessageCollectionResponse> GetAsync(Action<RepliesRequestB
6565
return await RequestAdapter.SendAsync<ChatMessageCollectionResponse>(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
6666
}
6767
/// <summary>
68-
/// Create a new reply to a chatMessage in a specified channel.
69-
/// Find more info here <see href="https://docs.microsoft.com/graph/api/channel-post-messagereply?view=graph-rest-1.0" />
68+
/// Send a new reply to a chatMessage in a specified channel.
69+
/// Find more info here <see href="https://docs.microsoft.com/graph/api/chatmessage-post-replies?view=graph-rest-1.0" />
7070
/// </summary>
7171
/// <param name="body">The request body</param>
7272
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
@@ -113,7 +113,7 @@ public RequestInformation ToGetRequestInformation(Action<RepliesRequestBuilderGe
113113
return requestInfo;
114114
}
115115
/// <summary>
116-
/// Create a new reply to a chatMessage in a specified channel.
116+
/// Send a new reply to a chatMessage in a specified channel.
117117
/// </summary>
118118
/// <param name="body">The request body</param>
119119
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ public async Task<ChatMessageCollectionResponse> GetAsync(Action<MessagesRequest
6565
return await RequestAdapter.SendAsync<ChatMessageCollectionResponse>(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
6666
}
6767
/// <summary>
68-
/// Send a new chatMessage in the specified channel or a chat.
69-
/// Find more info here <see href="https://docs.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0" />
68+
/// 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.
69+
/// Find more info here <see href="https://docs.microsoft.com/graph/api/chat-post-messages?view=graph-rest-1.0" />
7070
/// </summary>
7171
/// <param name="body">The request body</param>
7272
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
@@ -113,7 +113,7 @@ public RequestInformation ToGetRequestInformation(Action<MessagesRequestBuilderG
113113
return requestInfo;
114114
}
115115
/// <summary>
116-
/// Send a new chatMessage in the specified channel or a chat.
116+
/// 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.
117117
/// </summary>
118118
/// <param name="body">The request body</param>
119119
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>

src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ public InviteRequestBuilder(Dictionary<string, object> pathParameters, IRequestA
2828
public InviteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/calls/{call%2Did}/participants/invite", rawUrl) {
2929
}
3030
/// <summary>
31-
/// Invite participants to the active call. For more information about how to handle operations, see commsOperation.
32-
/// Find more info here <see href="https://docs.microsoft.com/graph/api/participant-invite?view=graph-rest-1.0" />
31+
/// Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled.
32+
/// Find more info here <see href="https://docs.microsoft.com/graph/api/participant-delete?view=graph-rest-1.0" />
3333
/// </summary>
3434
/// <param name="body">The request body</param>
3535
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
@@ -50,7 +50,7 @@ public async Task<InviteParticipantsOperation> PostAsync(InvitePostRequestBody b
5050
return await RequestAdapter.SendAsync<InviteParticipantsOperation>(requestInfo, InviteParticipantsOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
5151
}
5252
/// <summary>
53-
/// Invite participants to the active call. For more information about how to handle operations, see commsOperation.
53+
/// Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled.
5454
/// </summary>
5555
/// <param name="body">The request body</param>
5656
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>

src/Microsoft.Graph/Generated/DeviceAppManagement/DeviceAppManagementRequestBuilder.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public DeviceAppManagementRequestBuilder(string rawUrl, IRequestAdapter requestA
104104
}
105105
/// <summary>
106106
/// Read properties and relationships of the deviceAppManagement object.
107-
/// Find more info here <see href="https://docs.microsoft.com/graph/api/intune-books-deviceappmanagement-get?view=graph-rest-1.0" />
107+
/// Find more info here <see href="https://docs.microsoft.com/graph/api/intune-partnerintegration-deviceappmanagement-get?view=graph-rest-1.0" />
108108
/// </summary>
109109
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
110110
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
@@ -124,7 +124,7 @@ public DeviceAppManagementRequestBuilder(string rawUrl, IRequestAdapter requestA
124124
}
125125
/// <summary>
126126
/// Update the properties of a deviceAppManagement object.
127-
/// Find more info here <see href="https://docs.microsoft.com/graph/api/intune-unlock-deviceappmanagement-update?view=graph-rest-1.0" />
127+
/// Find more info here <see href="https://docs.microsoft.com/graph/api/intune-books-deviceappmanagement-update?view=graph-rest-1.0" />
128128
/// </summary>
129129
/// <param name="body">The request body</param>
130130
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>

src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/Item/ManagedAppPolicyItemRequestBuilder.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ public async Task DeleteAsync(Action<ManagedAppPolicyItemRequestBuilderDeleteReq
5252
await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken);
5353
}
5454
/// <summary>
55-
/// Read properties and relationships of the managedAppProtection object.
56-
/// Find more info here <see href="https://docs.microsoft.com/graph/api/intune-mam-managedappprotection-get?view=graph-rest-1.0" />
55+
/// Read properties and relationships of the windowsInformationProtection object.
56+
/// Find more info here <see href="https://docs.microsoft.com/graph/api/intune-mam-windowsinformationprotection-get?view=graph-rest-1.0" />
5757
/// </summary>
5858
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
5959
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
@@ -117,7 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action<ManagedAppPolicyItem
117117
return requestInfo;
118118
}
119119
/// <summary>
120-
/// Read properties and relationships of the managedAppProtection object.
120+
/// Read properties and relationships of the windowsInformationProtection object.
121121
/// </summary>
122122
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
123123
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -187,7 +187,7 @@ public ManagedAppPolicyItemRequestBuilderDeleteRequestConfiguration() {
187187
}
188188
}
189189
/// <summary>
190-
/// Read properties and relationships of the managedAppProtection object.
190+
/// Read properties and relationships of the windowsInformationProtection object.
191191
/// </summary>
192192
public class ManagedAppPolicyItemRequestBuilderGetQueryParameters {
193193
/// <summary>Expand related entities</summary>

0 commit comments

Comments
 (0)