Skip to content

Commit 174063f

Browse files
authored
Merge pull request #2271 from microsoftgraph/kiota/v1.0/pipelinebuild/130935
Generated models and request builders
2 parents dc698dd + b4153ef commit 174063f

File tree

299 files changed

+3164
-914
lines changed

Some content is hidden

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

299 files changed

+3164
-914
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.38.0] - 2024-01-03
11+
12+
- Latest metadata updates from 2nd January 2024.
13+
1014
## [5.37.0] - 2023-12-13
1115

1216
- Latest metadata updates from 12th December 2023.

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 channel or a chat.
71-
/// Find more info here <see href="https://learn.microsoft.com/graph/api/chatmessage-post?view=graph-rest-1.0" />
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" />
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 channel or a chat.
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.
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/PermissionGrants/PermissionGrantsRequestBuilder.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public PermissionGrantsRequestBuilder(Dictionary<string, object> pathParameters,
4242
public PermissionGrantsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/chats/{chat%2Did}/permissionGrants{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) {
4343
}
4444
/// <summary>
45-
/// 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.
45+
/// 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.
4646
/// Find more info here <see href="https://learn.microsoft.com/graph/api/chat-list-permissiongrants?view=graph-rest-1.0" />
4747
/// </summary>
4848
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
@@ -83,7 +83,7 @@ public async Task<ResourceSpecificPermissionGrant> PostAsync(ResourceSpecificPer
8383
return await RequestAdapter.SendAsync<ResourceSpecificPermissionGrant>(requestInfo, ResourceSpecificPermissionGrant.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
8484
}
8585
/// <summary>
86-
/// 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.
86+
/// 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.
8787
/// </summary>
8888
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
8989
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -125,7 +125,7 @@ public PermissionGrantsRequestBuilder WithUrl(string rawUrl) {
125125
return new PermissionGrantsRequestBuilder(rawUrl, RequestAdapter);
126126
}
127127
/// <summary>
128-
/// 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.
128+
/// 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.
129129
/// </summary>
130130
public class PermissionGrantsRequestBuilderGetQueryParameters {
131131
/// <summary>Include count of items</summary>

src/Microsoft.Graph/Generated/Communications/Calls/Item/CallItemRequestBuilder.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
using Microsoft.Graph.Communications.Calls.Item.RecordResponse;
1414
using Microsoft.Graph.Communications.Calls.Item.Redirect;
1515
using Microsoft.Graph.Communications.Calls.Item.Reject;
16+
using Microsoft.Graph.Communications.Calls.Item.SendDtmfTones;
1617
using Microsoft.Graph.Communications.Calls.Item.SubscribeToTone;
1718
using Microsoft.Graph.Communications.Calls.Item.Transfer;
1819
using Microsoft.Graph.Communications.Calls.Item.Unmute;
@@ -88,6 +89,10 @@ public class CallItemRequestBuilder : BaseRequestBuilder {
8889
public RejectRequestBuilder Reject { get =>
8990
new RejectRequestBuilder(PathParameters, RequestAdapter);
9091
}
92+
/// <summary>Provides operations to call the sendDtmfTones method.</summary>
93+
public SendDtmfTonesRequestBuilder SendDtmfTones { get =>
94+
new SendDtmfTonesRequestBuilder(PathParameters, RequestAdapter);
95+
}
9196
/// <summary>Provides operations to call the subscribeToTone method.</summary>
9297
public SubscribeToToneRequestBuilder SubscribeToTone { get =>
9398
new SubscribeToToneRequestBuilder(PathParameters, RequestAdapter);

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>
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
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.Communications.Calls.Item.SendDtmfTones {
10+
public class SendDtmfTonesPostRequestBody : 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 clientContext property</summary>
19+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
20+
#nullable enable
21+
public string? ClientContext {
22+
get { return BackingStore?.Get<string?>("clientContext"); }
23+
set { BackingStore?.Set("clientContext", value); }
24+
}
25+
#nullable restore
26+
#else
27+
public string ClientContext {
28+
get { return BackingStore?.Get<string>("clientContext"); }
29+
set { BackingStore?.Set("clientContext", value); }
30+
}
31+
#endif
32+
/// <summary>The delayBetweenTonesMs property</summary>
33+
public int? DelayBetweenTonesMs {
34+
get { return BackingStore?.Get<int?>("delayBetweenTonesMs"); }
35+
set { BackingStore?.Set("delayBetweenTonesMs", value); }
36+
}
37+
/// <summary>The tones property</summary>
38+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
39+
#nullable enable
40+
public List<Tone?>? Tones {
41+
get { return BackingStore?.Get<List<Tone?>?>("tones"); }
42+
set { BackingStore?.Set("tones", value); }
43+
}
44+
#nullable restore
45+
#else
46+
public List<Tone?> Tones {
47+
get { return BackingStore?.Get<List<Tone?>>("tones"); }
48+
set { BackingStore?.Set("tones", value); }
49+
}
50+
#endif
51+
/// <summary>
52+
/// Instantiates a new sendDtmfTonesPostRequestBody and sets the default values.
53+
/// </summary>
54+
public SendDtmfTonesPostRequestBody() {
55+
BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
56+
AdditionalData = new Dictionary<string, object>();
57+
}
58+
/// <summary>
59+
/// Creates a new instance of the appropriate class based on discriminator value
60+
/// </summary>
61+
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
62+
public static SendDtmfTonesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) {
63+
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
64+
return new SendDtmfTonesPostRequestBody();
65+
}
66+
/// <summary>
67+
/// The deserialization information for the current model
68+
/// </summary>
69+
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers() {
70+
return new Dictionary<string, Action<IParseNode>> {
71+
{"clientContext", n => { ClientContext = n.GetStringValue(); } },
72+
{"delayBetweenTonesMs", n => { DelayBetweenTonesMs = n.GetIntValue(); } },
73+
{"tones", n => { Tones = n.GetCollectionOfEnumValues<Tone>()?.ToList(); } },
74+
};
75+
}
76+
/// <summary>
77+
/// Serializes information the current object
78+
/// </summary>
79+
/// <param name="writer">Serialization writer to use to serialize this model</param>
80+
public virtual void Serialize(ISerializationWriter writer) {
81+
_ = writer ?? throw new ArgumentNullException(nameof(writer));
82+
writer.WriteStringValue("clientContext", ClientContext);
83+
writer.WriteIntValue("delayBetweenTonesMs", DelayBetweenTonesMs);
84+
writer.WriteCollectionOfEnumValues<Tone>("tones", Tones);
85+
writer.WriteAdditionalData(AdditionalData);
86+
}
87+
}
88+
}
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
// <auto-generated/>
2+
using Microsoft.Graph.Models.ODataErrors;
3+
using Microsoft.Graph.Models;
4+
using Microsoft.Kiota.Abstractions.Serialization;
5+
using Microsoft.Kiota.Abstractions;
6+
using System.Collections.Generic;
7+
using System.IO;
8+
using System.Linq;
9+
using System.Threading.Tasks;
10+
using System.Threading;
11+
using System;
12+
namespace Microsoft.Graph.Communications.Calls.Item.SendDtmfTones {
13+
/// <summary>
14+
/// Provides operations to call the sendDtmfTones method.
15+
/// </summary>
16+
public class SendDtmfTonesRequestBuilder : BaseRequestBuilder {
17+
/// <summary>
18+
/// Instantiates a new SendDtmfTonesRequestBuilder and sets the default values.
19+
/// </summary>
20+
/// <param name="pathParameters">Path parameters for the request</param>
21+
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
22+
public SendDtmfTonesRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/calls/{call%2Did}/sendDtmfTones", pathParameters) {
23+
}
24+
/// <summary>
25+
/// Instantiates a new SendDtmfTonesRequestBuilder and sets the default values.
26+
/// </summary>
27+
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
28+
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
29+
public SendDtmfTonesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/calls/{call%2Did}/sendDtmfTones", rawUrl) {
30+
}
31+
/// <summary>
32+
/// Invoke action sendDtmfTones
33+
/// </summary>
34+
/// <param name="body">The request body</param>
35+
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
36+
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
37+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
38+
#nullable enable
39+
public async Task<SendDtmfTonesOperation?> PostAsync(SendDtmfTonesPostRequestBody body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default) {
40+
#nullable restore
41+
#else
42+
public async Task<SendDtmfTonesOperation> PostAsync(SendDtmfTonesPostRequestBody body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default) {
43+
#endif
44+
_ = body ?? throw new ArgumentNullException(nameof(body));
45+
var requestInfo = ToPostRequestInformation(body, requestConfiguration);
46+
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>> {
47+
{"4XX", ODataError.CreateFromDiscriminatorValue},
48+
{"5XX", ODataError.CreateFromDiscriminatorValue},
49+
};
50+
return await RequestAdapter.SendAsync<SendDtmfTonesOperation>(requestInfo, SendDtmfTonesOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
51+
}
52+
/// <summary>
53+
/// Invoke action sendDtmfTones
54+
/// </summary>
55+
/// <param name="body">The request body</param>
56+
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
57+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
58+
#nullable enable
59+
public RequestInformation ToPostRequestInformation(SendDtmfTonesPostRequestBody body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default) {
60+
#nullable restore
61+
#else
62+
public RequestInformation ToPostRequestInformation(SendDtmfTonesPostRequestBody body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default) {
63+
#endif
64+
_ = body ?? throw new ArgumentNullException(nameof(body));
65+
var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters);
66+
requestInfo.Configure(requestConfiguration);
67+
requestInfo.Headers.TryAdd("Accept", "application/json");
68+
requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body);
69+
return requestInfo;
70+
}
71+
/// <summary>
72+
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
73+
/// </summary>
74+
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
75+
public SendDtmfTonesRequestBuilder WithUrl(string rawUrl) {
76+
return new SendDtmfTonesRequestBuilder(rawUrl, RequestAdapter);
77+
}
78+
/// <summary>
79+
/// Configuration for the request such as headers, query parameters, and middleware options.
80+
/// </summary>
81+
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
82+
public class SendDtmfTonesRequestBuilderPostRequestConfiguration : RequestConfiguration<DefaultQueryParameters> {
83+
}
84+
}
85+
}

src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/AttendanceReports/AttendanceReportsRequestBuilder.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public AttendanceReportsRequestBuilder(Dictionary<string, object> pathParameters
4242
public AttendanceReportsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/attendanceReports{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) {
4343
}
4444
/// <summary>
45-
/// Get attendanceReports from communications
45+
/// The attendance reports of an online meeting. Read-only.
4646
/// </summary>
4747
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
4848
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
@@ -82,7 +82,7 @@ public async Task<MeetingAttendanceReport> PostAsync(MeetingAttendanceReport bod
8282
return await RequestAdapter.SendAsync<MeetingAttendanceReport>(requestInfo, MeetingAttendanceReport.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
8383
}
8484
/// <summary>
85-
/// Get attendanceReports from communications
85+
/// The attendance reports of an online meeting. Read-only.
8686
/// </summary>
8787
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
8888
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -124,7 +124,7 @@ public AttendanceReportsRequestBuilder WithUrl(string rawUrl) {
124124
return new AttendanceReportsRequestBuilder(rawUrl, RequestAdapter);
125125
}
126126
/// <summary>
127-
/// Get attendanceReports from communications
127+
/// The attendance reports of an online meeting. Read-only.
128128
/// </summary>
129129
public class AttendanceReportsRequestBuilderGetQueryParameters {
130130
/// <summary>Include count of items</summary>

0 commit comments

Comments
 (0)