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,31 +15,13 @@ 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 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 guid property</summary>
public Guid? Guid { 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 int? Id { get; set; }
/// <summary>The year property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public UntypedNode? Year { get; set; }
#nullable restore
#else
public UntypedNode Year { get; set; }
#endif
public int? Year { get; set; }
/// <summary>
/// Instantiates a new <see cref="global::Marechai.App.Models.CompanyLogoDto"/> and sets the default values.
/// </summary>
@@ -65,10 +47,10 @@ namespace Marechai.App.Models
{
return new Dictionary<string, Action<IParseNode>>
{
{ "company_id", n => { CompanyId = n.GetObjectValue<UntypedNode>(UntypedNode.CreateFromDiscriminatorValue); } },
{ "company_id", n => { CompanyId = n.GetIntValue(); } },
{ "guid", n => { Guid = n.GetGuidValue(); } },
{ "id", n => { Id = n.GetObjectValue<UntypedNode>(UntypedNode.CreateFromDiscriminatorValue); } },
{ "year", n => { Year = n.GetObjectValue<UntypedNode>(UntypedNode.CreateFromDiscriminatorValue); } },
{ "id", n => { Id = n.GetIntValue(); } },
{ "year", n => { Year = n.GetIntValue(); } },
};
}
/// <summary>
@@ -78,10 +60,10 @@ namespace Marechai.App.Models
public virtual void Serialize(ISerializationWriter writer)
{
if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
writer.WriteObjectValue<UntypedNode>("company_id", CompanyId);
writer.WriteIntValue("company_id", CompanyId);
writer.WriteGuidValue("guid", Guid);
writer.WriteObjectValue<UntypedNode>("id", Id);
writer.WriteObjectValue<UntypedNode>("year", Year);
writer.WriteIntValue("id", Id);
writer.WriteIntValue("year", Year);
writer.WriteAdditionalData(AdditionalData);
}
}