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

@@ -15,13 +15,7 @@ namespace Marechai.App.Models
/// <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; set; }
/// <summary>The book_id property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public UntypedNode? BookId { get; set; }
#nullable restore
#else
public UntypedNode BookId { get; set; }
#endif
public long? BookId { get; set; }
/// <summary>The company property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
@@ -31,21 +25,9 @@ namespace Marechai.App.Models
public string Company { get; set; }
#endif
/// <summary>The company_id property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public UntypedNode? CompanyId { get; set; }
#nullable restore
#else
public UntypedNode CompanyId { get; set; }
#endif
public int? CompanyId { get; set; }
/// <summary>The id property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public UntypedNode? Id { get; set; }
#nullable restore
#else
public UntypedNode Id { get; set; }
#endif
public long? Id { get; set; }
/// <summary>The role property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
@@ -87,10 +69,10 @@ namespace Marechai.App.Models
{
return new Dictionary<string, Action<IParseNode>>
{
{ "book_id", n => { BookId = n.GetObjectValue<UntypedNode>(UntypedNode.CreateFromDiscriminatorValue); } },
{ "book_id", n => { BookId = n.GetLongValue(); } },
{ "company", n => { Company = n.GetStringValue(); } },
{ "company_id", n => { CompanyId = n.GetObjectValue<UntypedNode>(UntypedNode.CreateFromDiscriminatorValue); } },
{ "id", n => { Id = n.GetObjectValue<UntypedNode>(UntypedNode.CreateFromDiscriminatorValue); } },
{ "company_id", n => { CompanyId = n.GetIntValue(); } },
{ "id", n => { Id = n.GetLongValue(); } },
{ "role", n => { Role = n.GetStringValue(); } },
{ "role_id", n => { RoleId = n.GetStringValue(); } },
};
@@ -102,10 +84,10 @@ namespace Marechai.App.Models
public virtual void Serialize(ISerializationWriter writer)
{
if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
writer.WriteObjectValue<UntypedNode>("book_id", BookId);
writer.WriteLongValue("book_id", BookId);
writer.WriteStringValue("company", Company);
writer.WriteObjectValue<UntypedNode>("company_id", CompanyId);
writer.WriteObjectValue<UntypedNode>("id", Id);
writer.WriteIntValue("company_id", CompanyId);
writer.WriteLongValue("id", Id);
writer.WriteStringValue("role", Role);
writer.WriteStringValue("role_id", RoleId);
writer.WriteAdditionalData(AdditionalData);