Skip to content

Commit 2821a5d

Browse files
authored
Merge pull request #2289 from microsoftgraph/kiota/v1.0/pipelinebuild/131601
Generated models and request builders
2 parents 86117e9 + a02f2e4 commit 2821a5d

File tree

162 files changed

+3076
-422
lines changed

Some content is hidden

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

162 files changed

+3076
-422
lines changed

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.39.0] - 2024-01-16
11+
12+
- Latest metadata updates from 16th January 2024.
13+
- Fixes missing interfaces for changenotification models(https://github.com/microsoftgraph/msgraph-sdk-dotnet/issues/2237).
14+
1015
## [5.38.0] - 2024-01-03
1116

1217
- Latest metadata updates from 2nd January 2024.

src/Microsoft.Graph/Extensions/ChangeNotification.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
using System.Linq;
66
using System;
77
namespace Microsoft.Graph.Models {
8-
public class ChangeNotification : IAdditionalDataHolder, IBackedModel, IParsable {
8+
public class ChangeNotification : IEncryptedContentBearer<ChangeNotificationEncryptedContent>,IAdditionalDataHolder, IBackedModel, IParsable {
99
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
1010
public IDictionary<string, object> AdditionalData {
1111
get { return BackingStore?.Get<IDictionary<string, object>>("additionalData"); }

src/Microsoft.Graph/Extensions/ChangeNotificationCollection.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
using Microsoft.Kiota.Abstractions.Serialization;
1+
using Microsoft.Kiota.Abstractions.Serialization;
22
using System.Collections.Generic;
33
using System.IO;
44
using System.Linq;
55
using System;
66
using Microsoft.Kiota.Abstractions.Store;
77

88
namespace Microsoft.Graph.Models {
9-
public class ChangeNotificationCollection : IAdditionalDataHolder,IBackedModel, IParsable {
9+
public class ChangeNotificationCollection : ITokenValidable<ChangeNotification, ChangeNotificationEncryptedContent>, IAdditionalDataHolder,IBackedModel, IParsable {
1010
/// <summary>Stores model information.</summary>
1111
public IBackingStore BackingStore { get; private set; }
1212

src/Microsoft.Graph/Extensions/ChangeNotificationEncryptedContent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
using System.Linq;
66
using System;
77
namespace Microsoft.Graph.Models {
8-
public class ChangeNotificationEncryptedContent : IAdditionalDataHolder, IBackedModel, IParsable {
8+
public class ChangeNotificationEncryptedContent : IDecryptableContent, IAdditionalDataHolder, IBackedModel, IParsable {
99
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
1010
public IDictionary<string, object> AdditionalData {
1111
get { return BackingStore?.Get<IDictionary<string, object>>("additionalData"); }
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
using System;
2+
using System.Security.Cryptography.X509Certificates;
3+
using Microsoft.Graph;
4+
5+
namespace Microsoft.Graph.Models
6+
{
7+
public static class SubscriptionExtensions
8+
{
9+
/// <summary>
10+
/// Adds the public encryption certificate information for change notifications with resource data to the subscription creation information.
11+
/// </summary>
12+
/// <param name="subscription">The subscription instance of type <see cref="Subscription"/></param>
13+
/// <param name="certificate">Certificate to use for encryption</param>
14+
/// <exception cref="ArgumentNullException">Thrown when <paramref name="certificate"/> is null</exception>
15+
public static void AddPublicEncryptionCertificate(this Subscription subscription, X509Certificate2 certificate)
16+
{
17+
if (certificate == null)
18+
throw new ArgumentNullException(nameof(certificate));
19+
20+
var tempSubscription = new EncryptableSubscription();
21+
tempSubscription.AddPublicEncryptionCertificate(certificate);
22+
subscription.EncryptionCertificate = tempSubscription.EncryptionCertificate;
23+
}
24+
}
25+
26+
internal class EncryptableSubscription : IEncryptableSubscription
27+
{
28+
/// <summary>
29+
/// The encryption certificate
30+
/// </summary>
31+
public string EncryptionCertificate { get; set; }
32+
}
33+
}

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ public async Task DeleteAsync(Action<RequestConfiguration<DefaultQueryParameters
4949
await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
5050
}
5151
/// <summary>
52-
/// Retrieve a conversationMember from a chat or channel.
53-
/// Find more info here <see href="https://learn.microsoft.com/graph/api/conversationmember-get?view=graph-rest-1.0" />
52+
/// Retrieve a conversationMember from a chat.
53+
/// Find more info here <see href="https://learn.microsoft.com/graph/api/chat-get-members?view=graph-rest-1.0" />
5454
/// </summary>
5555
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
5656
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
@@ -106,7 +106,7 @@ public RequestInformation ToDeleteRequestInformation(Action<RequestConfiguration
106106
return requestInfo;
107107
}
108108
/// <summary>
109-
/// Retrieve a conversationMember from a chat or channel.
109+
/// Retrieve a conversationMember from a chat.
110110
/// </summary>
111111
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
112112
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -154,7 +154,7 @@ public ConversationMemberItemRequestBuilder WithUrl(string rawUrl) {
154154
public class ConversationMemberItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration<DefaultQueryParameters> {
155155
}
156156
/// <summary>
157-
/// Retrieve a conversationMember from a chat or channel.
157+
/// Retrieve a conversationMember from a chat.
158158
/// </summary>
159159
public class ConversationMemberItemRequestBuilderGetQueryParameters {
160160
/// <summary>Expand related entities</summary>

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ public async Task<ChatMessageCollectionResponse> GetAsync(Action<RequestConfigur
6767
return await RequestAdapter.SendAsync<ChatMessageCollectionResponse>(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
6868
}
6969
/// <summary>
70-
/// 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.
71-
/// Find more info here <see href="https://learn.microsoft.com/graph/api/chat-post-messages?view=graph-rest-1.0" />
70+
/// Send a new chatMessage in the specified channel or a chat.
71+
/// Find more info here <see href="https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0" />
7272
/// </summary>
7373
/// <param name="body">The request body</param>
7474
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
@@ -105,7 +105,7 @@ public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<Me
105105
return requestInfo;
106106
}
107107
/// <summary>
108-
/// 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.
108+
/// Send a new chatMessage in the specified channel or a chat.
109109
/// </summary>
110110
/// <param name="body">The request body</param>
111111
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>

src/Microsoft.Graph/Generated/Chats/Item/SendActivityNotification/SendActivityNotificationPostRequestBody.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,20 @@ public TeamworkNotificationRecipient Recipient {
6161
get { return BackingStore?.Get<TeamworkNotificationRecipient>("recipient"); }
6262
set { BackingStore?.Set("recipient", value); }
6363
}
64+
#endif
65+
/// <summary>The teamsAppId property</summary>
66+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
67+
#nullable enable
68+
public string? TeamsAppId {
69+
get { return BackingStore?.Get<string?>("teamsAppId"); }
70+
set { BackingStore?.Set("teamsAppId", value); }
71+
}
72+
#nullable restore
73+
#else
74+
public string TeamsAppId {
75+
get { return BackingStore?.Get<string>("teamsAppId"); }
76+
set { BackingStore?.Set("teamsAppId", value); }
77+
}
6478
#endif
6579
/// <summary>The templateParameters property</summary>
6680
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -114,6 +128,7 @@ public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers() {
114128
{"chainId", n => { ChainId = n.GetLongValue(); } },
115129
{"previewText", n => { PreviewText = n.GetObjectValue<ItemBody>(ItemBody.CreateFromDiscriminatorValue); } },
116130
{"recipient", n => { Recipient = n.GetObjectValue<TeamworkNotificationRecipient>(TeamworkNotificationRecipient.CreateFromDiscriminatorValue); } },
131+
{"teamsAppId", n => { TeamsAppId = n.GetStringValue(); } },
117132
{"templateParameters", n => { TemplateParameters = n.GetCollectionOfObjectValues<Microsoft.Graph.Models.KeyValuePair>(Microsoft.Graph.Models.KeyValuePair.CreateFromDiscriminatorValue)?.ToList(); } },
118133
{"topic", n => { Topic = n.GetObjectValue<TeamworkActivityTopic>(TeamworkActivityTopic.CreateFromDiscriminatorValue); } },
119134
};
@@ -128,6 +143,7 @@ public virtual void Serialize(ISerializationWriter writer) {
128143
writer.WriteLongValue("chainId", ChainId);
129144
writer.WriteObjectValue<ItemBody>("previewText", PreviewText);
130145
writer.WriteObjectValue<TeamworkNotificationRecipient>("recipient", Recipient);
146+
writer.WriteStringValue("teamsAppId", TeamsAppId);
131147
writer.WriteCollectionOfObjectValues<Microsoft.Graph.Models.KeyValuePair>("templateParameters", TemplateParameters);
132148
writer.WriteObjectValue<TeamworkActivityTopic>("topic", Topic);
133149
writer.WriteAdditionalData(AdditionalData);

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
@@ -29,8 +29,8 @@ public InviteRequestBuilder(Dictionary<string, object> pathParameters, IRequestA
2929
public InviteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/calls/{call%2Did}/participants/invite", rawUrl) {
3030
}
3131
/// <summary>
32-
/// 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.
33-
/// Find more info here <see href="https://learn.microsoft.com/graph/api/participant-delete?view=graph-rest-1.0" />
32+
/// Invite participants to the active call. For more information about how to handle operations, see commsOperation.
33+
/// Find more info here <see href="https://learn.microsoft.com/graph/api/participant-invite?view=graph-rest-1.0" />
3434
/// </summary>
3535
/// <param name="body">The request body</param>
3636
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
@@ -51,7 +51,7 @@ public async Task<InviteParticipantsOperation> PostAsync(InvitePostRequestBody b
5151
return await RequestAdapter.SendAsync<InviteParticipantsOperation>(requestInfo, InviteParticipantsOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
5252
}
5353
/// <summary>
54-
/// 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.
54+
/// Invite participants to the active call. For more information about how to handle operations, see commsOperation.
5555
/// </summary>
5656
/// <param name="body">The request body</param>
5757
/// <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
@@ -105,7 +105,7 @@ public DeviceAppManagementRequestBuilder(string rawUrl, IRequestAdapter requestA
105105
}
106106
/// <summary>
107107
/// Read properties and relationships of the deviceAppManagement object.
108-
/// Find more info here <see href="https://learn.microsoft.com/graph/api/intune-partnerintegration-deviceappmanagement-get?view=graph-rest-1.0" />
108+
/// Find more info here <see href="https://learn.microsoft.com/graph/api/intune-onboarding-deviceappmanagement-get?view=graph-rest-1.0" />
109109
/// </summary>
110110
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
111111
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
@@ -125,7 +125,7 @@ public DeviceAppManagementRequestBuilder(string rawUrl, IRequestAdapter requestA
125125
}
126126
/// <summary>
127127
/// Update the properties of a deviceAppManagement object.
128-
/// Find more info here <see href="https://learn.microsoft.com/graph/api/intune-onboarding-deviceappmanagement-update?view=graph-rest-1.0" />
128+
/// Find more info here <see href="https://learn.microsoft.com/graph/api/intune-policyset-deviceappmanagement-update?view=graph-rest-1.0" />
129129
/// </summary>
130130
/// <param name="body">The request body</param>
131131
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>

0 commit comments

Comments
 (0)