mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Update Kiota client.
This commit is contained in:
@@ -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 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 introduced property</summary>
|
||||
public DateTimeOffset? Introduced { get; set; }
|
||||
/// <summary>The name property</summary>
|
||||
@@ -41,13 +35,7 @@ namespace Marechai.App.Models
|
||||
public string Parent { get; set; }
|
||||
#endif
|
||||
/// <summary>The parent_id property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public UntypedNode? ParentId { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public UntypedNode ParentId { get; set; }
|
||||
#endif
|
||||
public int? ParentId { get; set; }
|
||||
/// <summary>
|
||||
/// Instantiates a new <see cref="global::Marechai.App.Models.SoftwareFamilyDto"/> and sets the default values.
|
||||
/// </summary>
|
||||
@@ -73,11 +61,11 @@ namespace Marechai.App.Models
|
||||
{
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "id", n => { Id = n.GetObjectValue<UntypedNode>(UntypedNode.CreateFromDiscriminatorValue); } },
|
||||
{ "id", n => { Id = n.GetIntValue(); } },
|
||||
{ "introduced", n => { Introduced = n.GetDateTimeOffsetValue(); } },
|
||||
{ "name", n => { Name = n.GetStringValue(); } },
|
||||
{ "parent", n => { Parent = n.GetStringValue(); } },
|
||||
{ "parent_id", n => { ParentId = n.GetObjectValue<UntypedNode>(UntypedNode.CreateFromDiscriminatorValue); } },
|
||||
{ "parent_id", n => { ParentId = n.GetIntValue(); } },
|
||||
};
|
||||
}
|
||||
/// <summary>
|
||||
@@ -87,11 +75,11 @@ namespace Marechai.App.Models
|
||||
public virtual void Serialize(ISerializationWriter writer)
|
||||
{
|
||||
if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteObjectValue<UntypedNode>("id", Id);
|
||||
writer.WriteIntValue("id", Id);
|
||||
writer.WriteDateTimeOffsetValue("introduced", Introduced);
|
||||
writer.WriteStringValue("name", Name);
|
||||
writer.WriteStringValue("parent", Parent);
|
||||
writer.WriteObjectValue<UntypedNode>("parent_id", ParentId);
|
||||
writer.WriteIntValue("parent_id", ParentId);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user