Skip to content

Commit 26cdfc9

Browse files
authored
Merge pull request #2300 from microsoftgraph/kiota/v1.0/pipelinebuild/132033
Generated models and request builders
2 parents 2821a5d + b346a8e commit 26cdfc9

File tree

346 files changed

+23408
-540
lines changed

Some content is hidden

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

346 files changed

+23408
-540
lines changed

CHANGELOG.md

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

88
## [Unreleased]
99

10+
## [5.40.0] - 2024-01-24
11+
12+
- Latest metadata updates from 24th January 2024.
13+
1014
## [5.39.0] - 2024-01-16
1115

1216
- Latest metadata updates from 16th January 2024.
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
// <auto-generated/>
2+
using Microsoft.Graph.Models;
3+
using Microsoft.Kiota.Abstractions.Serialization;
4+
using Microsoft.Kiota.Abstractions.Store;
5+
using System.Collections.Generic;
6+
using System.IO;
7+
using System.Linq;
8+
using System;
9+
namespace Microsoft.Graph.Applications.Item.Synchronization.Secrets {
10+
public class SecretsPutRequestBody : IAdditionalDataHolder, IBackedModel, IParsable {
11+
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
12+
public IDictionary<string, object> AdditionalData {
13+
get { return BackingStore?.Get<IDictionary<string, object>>("AdditionalData"); }
14+
set { BackingStore?.Set("AdditionalData", value); }
15+
}
16+
/// <summary>Stores model information.</summary>
17+
public IBackingStore BackingStore { get; private set; }
18+
/// <summary>The value property</summary>
19+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
20+
#nullable enable
21+
public List<SynchronizationSecretKeyStringValuePair>? Value {
22+
get { return BackingStore?.Get<List<SynchronizationSecretKeyStringValuePair>?>("value"); }
23+
set { BackingStore?.Set("value", value); }
24+
}
25+
#nullable restore
26+
#else
27+
public List<SynchronizationSecretKeyStringValuePair> Value {
28+
get { return BackingStore?.Get<List<SynchronizationSecretKeyStringValuePair>>("value"); }
29+
set { BackingStore?.Set("value", value); }
30+
}
31+
#endif
32+
/// <summary>
33+
/// Instantiates a new secretsPutRequestBody and sets the default values.
34+
/// </summary>
35+
public SecretsPutRequestBody() {
36+
BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
37+
AdditionalData = new Dictionary<string, object>();
38+
}
39+
/// <summary>
40+
/// Creates a new instance of the appropriate class based on discriminator value
41+
/// </summary>
42+
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
43+
public static SecretsPutRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) {
44+
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
45+
return new SecretsPutRequestBody();
46+
}
47+
/// <summary>
48+
/// The deserialization information for the current model
49+
/// </summary>
50+
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers() {
51+
return new Dictionary<string, Action<IParseNode>> {
52+
{"value", n => { Value = n.GetCollectionOfObjectValues<SynchronizationSecretKeyStringValuePair>(SynchronizationSecretKeyStringValuePair.CreateFromDiscriminatorValue)?.ToList(); } },
53+
};
54+
}
55+
/// <summary>
56+
/// Serializes information the current object
57+
/// </summary>
58+
/// <param name="writer">Serialization writer to use to serialize this model</param>
59+
public virtual void Serialize(ISerializationWriter writer) {
60+
_ = writer ?? throw new ArgumentNullException(nameof(writer));
61+
writer.WriteCollectionOfObjectValues<SynchronizationSecretKeyStringValuePair>("value", Value);
62+
writer.WriteAdditionalData(AdditionalData);
63+
}
64+
}
65+
}
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
// <auto-generated/>
2+
using Microsoft.Graph.Models;
3+
using Microsoft.Kiota.Abstractions.Serialization;
4+
using Microsoft.Kiota.Abstractions.Store;
5+
using System.Collections.Generic;
6+
using System.IO;
7+
using System.Linq;
8+
using System;
9+
namespace Microsoft.Graph.Applications.Item.Synchronization.Secrets {
10+
public class SecretsPutResponse : IAdditionalDataHolder, IBackedModel, IParsable {
11+
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
12+
public IDictionary<string, object> AdditionalData {
13+
get { return BackingStore?.Get<IDictionary<string, object>>("AdditionalData"); }
14+
set { BackingStore?.Set("AdditionalData", value); }
15+
}
16+
/// <summary>Stores model information.</summary>
17+
public IBackingStore BackingStore { get; private set; }
18+
/// <summary>The value property</summary>
19+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
20+
#nullable enable
21+
public List<SynchronizationSecretKeyStringValuePair>? Value {
22+
get { return BackingStore?.Get<List<SynchronizationSecretKeyStringValuePair>?>("value"); }
23+
set { BackingStore?.Set("value", value); }
24+
}
25+
#nullable restore
26+
#else
27+
public List<SynchronizationSecretKeyStringValuePair> Value {
28+
get { return BackingStore?.Get<List<SynchronizationSecretKeyStringValuePair>>("value"); }
29+
set { BackingStore?.Set("value", value); }
30+
}
31+
#endif
32+
/// <summary>
33+
/// Instantiates a new secretsPutResponse and sets the default values.
34+
/// </summary>
35+
public SecretsPutResponse() {
36+
BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
37+
AdditionalData = new Dictionary<string, object>();
38+
}
39+
/// <summary>
40+
/// Creates a new instance of the appropriate class based on discriminator value
41+
/// </summary>
42+
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
43+
public static SecretsPutResponse CreateFromDiscriminatorValue(IParseNode parseNode) {
44+
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
45+
return new SecretsPutResponse();
46+
}
47+
/// <summary>
48+
/// The deserialization information for the current model
49+
/// </summary>
50+
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers() {
51+
return new Dictionary<string, Action<IParseNode>> {
52+
{"value", n => { Value = n.GetCollectionOfObjectValues<SynchronizationSecretKeyStringValuePair>(SynchronizationSecretKeyStringValuePair.CreateFromDiscriminatorValue)?.ToList(); } },
53+
};
54+
}
55+
/// <summary>
56+
/// Serializes information the current object
57+
/// </summary>
58+
/// <param name="writer">Serialization writer to use to serialize this model</param>
59+
public virtual void Serialize(ISerializationWriter writer) {
60+
_ = writer ?? throw new ArgumentNullException(nameof(writer));
61+
writer.WriteCollectionOfObjectValues<SynchronizationSecretKeyStringValuePair>("value", Value);
62+
writer.WriteAdditionalData(AdditionalData);
63+
}
64+
}
65+
}

src/Microsoft.Graph/Generated/Applications/Item/Synchronization/Secrets/SecretsRequestBuilder.cs

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// <auto-generated/>
22
using Microsoft.Graph.Applications.Item.Synchronization.Secrets.Count;
33
using Microsoft.Graph.Models.ODataErrors;
4-
using Microsoft.Graph.Models;
54
using Microsoft.Kiota.Abstractions.Serialization;
65
using Microsoft.Kiota.Abstractions;
76
using System.Collections.Generic;
@@ -41,19 +40,40 @@ public SecretsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba
4140
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
4241
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
4342
#nullable enable
44-
public async Task<List<SynchronizationSecretKeyStringValuePair>?> PutAsync(List<SynchronizationSecretKeyStringValuePair> body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default) {
43+
public async Task<SecretsPutResponse?> PutAsSecretsPutResponseAsync(SecretsPutRequestBody body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default) {
4544
#nullable restore
4645
#else
47-
public async Task<List<SynchronizationSecretKeyStringValuePair>> PutAsync(List<SynchronizationSecretKeyStringValuePair> body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default) {
46+
public async Task<SecretsPutResponse> PutAsSecretsPutResponseAsync(SecretsPutRequestBody body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default) {
4847
#endif
4948
_ = body ?? throw new ArgumentNullException(nameof(body));
5049
var requestInfo = ToPutRequestInformation(body, requestConfiguration);
5150
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>> {
5251
{"4XX", ODataError.CreateFromDiscriminatorValue},
5352
{"5XX", ODataError.CreateFromDiscriminatorValue},
5453
};
55-
var collectionResult = await RequestAdapter.SendCollectionAsync<SynchronizationSecretKeyStringValuePair>(requestInfo, SynchronizationSecretKeyStringValuePair.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
56-
return collectionResult?.ToList();
54+
return await RequestAdapter.SendAsync<SecretsPutResponse>(requestInfo, SecretsPutResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
55+
}
56+
/// <summary>
57+
/// Update property secrets value.
58+
/// </summary>
59+
/// <param name="body">The request body</param>
60+
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
61+
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
62+
[Obsolete("This method is obsolete. Use PutAsSecretsPutResponse instead.")]
63+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
64+
#nullable enable
65+
public async Task<SecretsResponse?> PutAsync(SecretsPutRequestBody body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default) {
66+
#nullable restore
67+
#else
68+
public async Task<SecretsResponse> PutAsync(SecretsPutRequestBody body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default) {
69+
#endif
70+
_ = body ?? throw new ArgumentNullException(nameof(body));
71+
var requestInfo = ToPutRequestInformation(body, requestConfiguration);
72+
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>> {
73+
{"4XX", ODataError.CreateFromDiscriminatorValue},
74+
{"5XX", ODataError.CreateFromDiscriminatorValue},
75+
};
76+
return await RequestAdapter.SendAsync<SecretsResponse>(requestInfo, SecretsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
5777
}
5878
/// <summary>
5979
/// Update property secrets value.
@@ -62,10 +82,10 @@ public async Task<List<SynchronizationSecretKeyStringValuePair>> PutAsync(List<S
6282
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
6383
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
6484
#nullable enable
65-
public RequestInformation ToPutRequestInformation(List<SynchronizationSecretKeyStringValuePair> body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default) {
85+
public RequestInformation ToPutRequestInformation(SecretsPutRequestBody body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default) {
6686
#nullable restore
6787
#else
68-
public RequestInformation ToPutRequestInformation(List<SynchronizationSecretKeyStringValuePair> body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default) {
88+
public RequestInformation ToPutRequestInformation(SecretsPutRequestBody body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default) {
6989
#endif
7090
_ = body ?? throw new ArgumentNullException(nameof(body));
7191
var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters);
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// <auto-generated/>
2+
using Microsoft.Kiota.Abstractions.Serialization;
3+
using System.Collections.Generic;
4+
using System.IO;
5+
using System.Linq;
6+
using System;
7+
namespace Microsoft.Graph.Applications.Item.Synchronization.Secrets {
8+
[Obsolete("This class is obsolete. Use secretsPutResponse instead.")]
9+
public class SecretsResponse : SecretsPutResponse, IParsable {
10+
/// <summary>
11+
/// Creates a new instance of the appropriate class based on discriminator value
12+
/// </summary>
13+
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
14+
public static new SecretsResponse CreateFromDiscriminatorValue(IParseNode parseNode) {
15+
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
16+
return new SecretsResponse();
17+
}
18+
}
19+
}

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.
53-
/// Find more info here <see href="https://learn.microsoft.com/graph/api/chat-get-members?view=graph-rest-1.0" />
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" />
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.
109+
/// Retrieve a conversationMember from a chat or channel.
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.
157+
/// Retrieve a conversationMember from a chat or channel.
158158
/// </summary>
159159
public class ConversationMemberItemRequestBuilderGetQueryParameters {
160160
/// <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
@@ -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-
/// Create a new reply to a chatMessage in a specified channel.
71-
/// Find more info here <see href="https://learn.microsoft.com/graph/api/channel-post-messagereply?view=graph-rest-1.0" />
70+
/// Send a new reply to a chatMessage in a specified channel.
71+
/// Find more info here <see href="https://learn.microsoft.com/graph/api/chatmessage-post-replies?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<Re
105105
return requestInfo;
106106
}
107107
/// <summary>
108-
/// Create a new reply to a chatMessage in a specified channel.
108+
/// Send a new reply to a chatMessage in a specified channel.
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/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-
/// 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" />
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" />
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-
/// Invite participants to the active call. For more information about how to handle operations, see commsOperation.
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.
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>

0 commit comments

Comments
 (0)