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

@@ -23,23 +23,11 @@ namespace Marechai.App.Models
public string Country { get; set; }
#endif
/// <summary>The country_id property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public UntypedNode? CountryId { get; set; }
#nullable restore
#else
public UntypedNode CountryId { get; set; }
#endif
public int? CountryId { get; set; }
/// <summary>The first_publication property</summary>
public DateTimeOffset? FirstPublication { 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 issn property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
@@ -100,9 +88,9 @@ namespace Marechai.App.Models
return new Dictionary<string, Action<IParseNode>>
{
{ "country", n => { Country = n.GetStringValue(); } },
{ "country_id", n => { CountryId = n.GetObjectValue<UntypedNode>(UntypedNode.CreateFromDiscriminatorValue); } },
{ "country_id", n => { CountryId = n.GetIntValue(); } },
{ "first_publication", n => { FirstPublication = n.GetDateTimeOffsetValue(); } },
{ "id", n => { Id = n.GetObjectValue<UntypedNode>(UntypedNode.CreateFromDiscriminatorValue); } },
{ "id", n => { Id = n.GetLongValue(); } },
{ "issn", n => { Issn = n.GetStringValue(); } },
{ "native_title", n => { NativeTitle = n.GetStringValue(); } },
{ "published", n => { Published = n.GetDateTimeOffsetValue(); } },
@@ -118,9 +106,9 @@ namespace Marechai.App.Models
{
if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
writer.WriteStringValue("country", Country);
writer.WriteObjectValue<UntypedNode>("country_id", CountryId);
writer.WriteIntValue("country_id", CountryId);
writer.WriteDateTimeOffsetValue("first_publication", FirstPublication);
writer.WriteObjectValue<UntypedNode>("id", Id);
writer.WriteLongValue("id", Id);
writer.WriteStringValue("issn", Issn);
writer.WriteStringValue("native_title", NativeTitle);
writer.WriteDateTimeOffsetValue("published", Published);