Update Kiota client.

This commit is contained in:
2025-11-15 22:41:01 +00:00
parent c3e75175f9
commit 4f59f6870d
124 changed files with 1043 additions and 2318 deletions

View File

@@ -21,7 +21,7 @@ namespace Marechai.App.Software.Versions.Companies
/// <summary>Gets an item from the Marechai.App.software.versions.companies.item collection</summary>
/// <param name="position">Unique identifier of the item</param>
/// <returns>A <see cref="global::Marechai.App.Software.Versions.Companies.Item.CompaniesItemRequestBuilder"/></returns>
public global::Marechai.App.Software.Versions.Companies.Item.CompaniesItemRequestBuilder this[string position]
public global::Marechai.App.Software.Versions.Companies.Item.CompaniesItemRequestBuilder this[int position]
{
get
{
@@ -30,6 +30,19 @@ namespace Marechai.App.Software.Versions.Companies
return new global::Marechai.App.Software.Versions.Companies.Item.CompaniesItemRequestBuilder(urlTplParams, RequestAdapter);
}
}
/// <summary>Gets an item from the Marechai.App.software.versions.companies.item collection</summary>
/// <param name="position">Unique identifier of the item</param>
/// <returns>A <see cref="global::Marechai.App.Software.Versions.Companies.Item.CompaniesItemRequestBuilder"/></returns>
[Obsolete("This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead.")]
public global::Marechai.App.Software.Versions.Companies.Item.CompaniesItemRequestBuilder this[string position]
{
get
{
var urlTplParams = new Dictionary<string, object>(PathParameters);
if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("id", position);
return new global::Marechai.App.Software.Versions.Companies.Item.CompaniesItemRequestBuilder(urlTplParams, RequestAdapter);
}
}
/// <summary>
/// Instantiates a new <see cref="global::Marechai.App.Software.Versions.Companies.CompaniesRequestBuilder"/> and sets the default values.
/// </summary>
@@ -46,7 +59,7 @@ namespace Marechai.App.Software.Versions.Companies
public CompaniesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/software/versions/companies", rawUrl)
{
}
/// <returns>A <see cref="UntypedNode"/></returns>
/// <returns>A <see cref="int"/></returns>
/// <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>
@@ -54,11 +67,11 @@ namespace Marechai.App.Software.Versions.Companies
/// <exception cref="global::Marechai.App.Models.ProblemDetails">When receiving a 401 status code</exception>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public async Task<UntypedNode?> PostAsync(global::Marechai.App.Models.CompanyBySoftwareVersionDto body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
public async Task<int?> PostAsync(global::Marechai.App.Models.CompanyBySoftwareVersionDto body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
public async Task<UntypedNode> PostAsync(global::Marechai.App.Models.CompanyBySoftwareVersionDto body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
public async Task<int?> PostAsync(global::Marechai.App.Models.CompanyBySoftwareVersionDto body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
if(ReferenceEquals(body, null)) throw new ArgumentNullException(nameof(body));
@@ -68,7 +81,7 @@ namespace Marechai.App.Software.Versions.Companies
{ "400", global::Marechai.App.Models.ProblemDetails.CreateFromDiscriminatorValue },
{ "401", global::Marechai.App.Models.ProblemDetails.CreateFromDiscriminatorValue },
};
return await RequestAdapter.SendAsync<UntypedNode>(requestInfo, UntypedNode.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
return await RequestAdapter.SendPrimitiveAsync<int?>(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
}
/// <returns>A <see cref="RequestInformation"/></returns>
/// <param name="body">The request body</param>