-
Notifications
You must be signed in to change notification settings - Fork 252
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2274 from microsoftgraph/dev
Release 5.38.0
- Loading branch information
Showing
300 changed files
with
3,166 additions
and
916 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
88 changes: 88 additions & 0 deletions
88
...t.Graph/Generated/Communications/Calls/Item/SendDtmfTones/SendDtmfTonesPostRequestBody.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
// <auto-generated/> | ||
using Microsoft.Graph.Models; | ||
using Microsoft.Kiota.Abstractions.Serialization; | ||
using Microsoft.Kiota.Abstractions.Store; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System.Linq; | ||
using System; | ||
namespace Microsoft.Graph.Communications.Calls.Item.SendDtmfTones { | ||
public class SendDtmfTonesPostRequestBody : IAdditionalDataHolder, IBackedModel, IParsable { | ||
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary> | ||
public IDictionary<string, object> AdditionalData { | ||
get { return BackingStore?.Get<IDictionary<string, object>>("AdditionalData"); } | ||
set { BackingStore?.Set("AdditionalData", value); } | ||
} | ||
/// <summary>Stores model information.</summary> | ||
public IBackingStore BackingStore { get; private set; } | ||
/// <summary>The clientContext property</summary> | ||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER | ||
#nullable enable | ||
public string? ClientContext { | ||
get { return BackingStore?.Get<string?>("clientContext"); } | ||
set { BackingStore?.Set("clientContext", value); } | ||
} | ||
#nullable restore | ||
#else | ||
public string ClientContext { | ||
get { return BackingStore?.Get<string>("clientContext"); } | ||
set { BackingStore?.Set("clientContext", value); } | ||
} | ||
#endif | ||
/// <summary>The delayBetweenTonesMs property</summary> | ||
public int? DelayBetweenTonesMs { | ||
get { return BackingStore?.Get<int?>("delayBetweenTonesMs"); } | ||
set { BackingStore?.Set("delayBetweenTonesMs", value); } | ||
} | ||
/// <summary>The tones property</summary> | ||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER | ||
#nullable enable | ||
public List<Tone?>? Tones { | ||
get { return BackingStore?.Get<List<Tone?>?>("tones"); } | ||
set { BackingStore?.Set("tones", value); } | ||
} | ||
#nullable restore | ||
#else | ||
public List<Tone?> Tones { | ||
get { return BackingStore?.Get<List<Tone?>>("tones"); } | ||
set { BackingStore?.Set("tones", value); } | ||
} | ||
#endif | ||
/// <summary> | ||
/// Instantiates a new sendDtmfTonesPostRequestBody and sets the default values. | ||
/// </summary> | ||
public SendDtmfTonesPostRequestBody() { | ||
BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); | ||
AdditionalData = new Dictionary<string, object>(); | ||
} | ||
/// <summary> | ||
/// Creates a new instance of the appropriate class based on discriminator value | ||
/// </summary> | ||
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param> | ||
public static SendDtmfTonesPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { | ||
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); | ||
return new SendDtmfTonesPostRequestBody(); | ||
} | ||
/// <summary> | ||
/// The deserialization information for the current model | ||
/// </summary> | ||
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers() { | ||
return new Dictionary<string, Action<IParseNode>> { | ||
{"clientContext", n => { ClientContext = n.GetStringValue(); } }, | ||
{"delayBetweenTonesMs", n => { DelayBetweenTonesMs = n.GetIntValue(); } }, | ||
{"tones", n => { Tones = n.GetCollectionOfEnumValues<Tone>()?.ToList(); } }, | ||
}; | ||
} | ||
/// <summary> | ||
/// Serializes information the current object | ||
/// </summary> | ||
/// <param name="writer">Serialization writer to use to serialize this model</param> | ||
public virtual void Serialize(ISerializationWriter writer) { | ||
_ = writer ?? throw new ArgumentNullException(nameof(writer)); | ||
writer.WriteStringValue("clientContext", ClientContext); | ||
writer.WriteIntValue("delayBetweenTonesMs", DelayBetweenTonesMs); | ||
writer.WriteCollectionOfEnumValues<Tone>("tones", Tones); | ||
writer.WriteAdditionalData(AdditionalData); | ||
} | ||
} | ||
} |
85 changes: 85 additions & 0 deletions
85
...ft.Graph/Generated/Communications/Calls/Item/SendDtmfTones/SendDtmfTonesRequestBuilder.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
// <auto-generated/> | ||
using Microsoft.Graph.Models.ODataErrors; | ||
using Microsoft.Graph.Models; | ||
using Microsoft.Kiota.Abstractions.Serialization; | ||
using Microsoft.Kiota.Abstractions; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
using System.Threading; | ||
using System; | ||
namespace Microsoft.Graph.Communications.Calls.Item.SendDtmfTones { | ||
/// <summary> | ||
/// Provides operations to call the sendDtmfTones method. | ||
/// </summary> | ||
public class SendDtmfTonesRequestBuilder : BaseRequestBuilder { | ||
/// <summary> | ||
/// Instantiates a new SendDtmfTonesRequestBuilder and sets the default values. | ||
/// </summary> | ||
/// <param name="pathParameters">Path parameters for the request</param> | ||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param> | ||
public SendDtmfTonesRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/calls/{call%2Did}/sendDtmfTones", pathParameters) { | ||
} | ||
/// <summary> | ||
/// Instantiates a new SendDtmfTonesRequestBuilder and sets the default values. | ||
/// </summary> | ||
/// <param name="rawUrl">The raw URL to use for the request builder.</param> | ||
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param> | ||
public SendDtmfTonesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/calls/{call%2Did}/sendDtmfTones", rawUrl) { | ||
} | ||
/// <summary> | ||
/// Invoke action sendDtmfTones | ||
/// </summary> | ||
/// <param name="body">The request body</param> | ||
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param> | ||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param> | ||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER | ||
#nullable enable | ||
public async Task<SendDtmfTonesOperation?> PostAsync(SendDtmfTonesPostRequestBody body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default) { | ||
#nullable restore | ||
#else | ||
public async Task<SendDtmfTonesOperation> PostAsync(SendDtmfTonesPostRequestBody body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default) { | ||
#endif | ||
_ = body ?? throw new ArgumentNullException(nameof(body)); | ||
var requestInfo = ToPostRequestInformation(body, requestConfiguration); | ||
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>> { | ||
{"4XX", ODataError.CreateFromDiscriminatorValue}, | ||
{"5XX", ODataError.CreateFromDiscriminatorValue}, | ||
}; | ||
return await RequestAdapter.SendAsync<SendDtmfTonesOperation>(requestInfo, SendDtmfTonesOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); | ||
} | ||
/// <summary> | ||
/// Invoke action sendDtmfTones | ||
/// </summary> | ||
/// <param name="body">The request body</param> | ||
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param> | ||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER | ||
#nullable enable | ||
public RequestInformation ToPostRequestInformation(SendDtmfTonesPostRequestBody body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default) { | ||
#nullable restore | ||
#else | ||
public RequestInformation ToPostRequestInformation(SendDtmfTonesPostRequestBody body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default) { | ||
#endif | ||
_ = body ?? throw new ArgumentNullException(nameof(body)); | ||
var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); | ||
requestInfo.Configure(requestConfiguration); | ||
requestInfo.Headers.TryAdd("Accept", "application/json"); | ||
requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); | ||
return requestInfo; | ||
} | ||
/// <summary> | ||
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. | ||
/// </summary> | ||
/// <param name="rawUrl">The raw URL to use for the request builder.</param> | ||
public SendDtmfTonesRequestBuilder WithUrl(string rawUrl) { | ||
return new SendDtmfTonesRequestBuilder(rawUrl, RequestAdapter); | ||
} | ||
/// <summary> | ||
/// Configuration for the request such as headers, query parameters, and middleware options. | ||
/// </summary> | ||
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] | ||
public class SendDtmfTonesRequestBuilderPostRequestConfiguration : RequestConfiguration<DefaultQueryParameters> { | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.