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,37 +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 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 machine_id property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public UntypedNode? MachineId { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public UntypedNode MachineId { get; set; }
|
||||
#endif
|
||||
public int? MachineId { get; set; }
|
||||
/// <summary>The size property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public UntypedNode? Size { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public UntypedNode Size { get; set; }
|
||||
#endif
|
||||
public long? Size { get; set; }
|
||||
/// <summary>The speed property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public UntypedNode? Speed { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public UntypedNode Speed { get; set; }
|
||||
#endif
|
||||
public double? Speed { get; set; }
|
||||
/// <summary>The type property</summary>
|
||||
public int? Type { get; set; }
|
||||
/// <summary>The usage property</summary>
|
||||
@@ -75,10 +51,10 @@ namespace Marechai.App.Models
|
||||
{
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "id", n => { Id = n.GetObjectValue<UntypedNode>(UntypedNode.CreateFromDiscriminatorValue); } },
|
||||
{ "machine_id", n => { MachineId = n.GetObjectValue<UntypedNode>(UntypedNode.CreateFromDiscriminatorValue); } },
|
||||
{ "size", n => { Size = n.GetObjectValue<UntypedNode>(UntypedNode.CreateFromDiscriminatorValue); } },
|
||||
{ "speed", n => { Speed = n.GetObjectValue<UntypedNode>(UntypedNode.CreateFromDiscriminatorValue); } },
|
||||
{ "id", n => { Id = n.GetLongValue(); } },
|
||||
{ "machine_id", n => { MachineId = n.GetIntValue(); } },
|
||||
{ "size", n => { Size = n.GetLongValue(); } },
|
||||
{ "speed", n => { Speed = n.GetDoubleValue(); } },
|
||||
{ "type", n => { Type = n.GetIntValue(); } },
|
||||
{ "usage", n => { Usage = n.GetIntValue(); } },
|
||||
};
|
||||
@@ -90,10 +66,10 @@ 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.WriteObjectValue<UntypedNode>("machine_id", MachineId);
|
||||
writer.WriteObjectValue<UntypedNode>("size", Size);
|
||||
writer.WriteObjectValue<UntypedNode>("speed", Speed);
|
||||
writer.WriteLongValue("id", Id);
|
||||
writer.WriteIntValue("machine_id", MachineId);
|
||||
writer.WriteLongValue("size", Size);
|
||||
writer.WriteDoubleValue("speed", Speed);
|
||||
writer.WriteIntValue("type", Type);
|
||||
writer.WriteIntValue("usage", Usage);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
|
||||
Reference in New Issue
Block a user