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:
@@ -23,29 +23,11 @@ namespace Marechai.App.Models
|
||||
public string Company { get; set; }
|
||||
#endif
|
||||
/// <summary>The gpu_id property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
public UntypedNode? GpuId { get; set; }
|
||||
#nullable restore
|
||||
#else
|
||||
public UntypedNode GpuId { get; set; }
|
||||
#endif
|
||||
public int? GpuId { 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 name property</summary>
|
||||
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
|
||||
#nullable enable
|
||||
@@ -80,9 +62,9 @@ namespace Marechai.App.Models
|
||||
return new Dictionary<string, Action<IParseNode>>
|
||||
{
|
||||
{ "company", n => { Company = n.GetStringValue(); } },
|
||||
{ "gpu_id", n => { GpuId = n.GetObjectValue<UntypedNode>(UntypedNode.CreateFromDiscriminatorValue); } },
|
||||
{ "id", n => { Id = n.GetObjectValue<UntypedNode>(UntypedNode.CreateFromDiscriminatorValue); } },
|
||||
{ "machine_id", n => { MachineId = n.GetObjectValue<UntypedNode>(UntypedNode.CreateFromDiscriminatorValue); } },
|
||||
{ "gpu_id", n => { GpuId = n.GetIntValue(); } },
|
||||
{ "id", n => { Id = n.GetLongValue(); } },
|
||||
{ "machine_id", n => { MachineId = n.GetIntValue(); } },
|
||||
{ "name", n => { Name = n.GetStringValue(); } },
|
||||
};
|
||||
}
|
||||
@@ -94,9 +76,9 @@ namespace Marechai.App.Models
|
||||
{
|
||||
if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
|
||||
writer.WriteStringValue("company", Company);
|
||||
writer.WriteObjectValue<UntypedNode>("gpu_id", GpuId);
|
||||
writer.WriteObjectValue<UntypedNode>("id", Id);
|
||||
writer.WriteObjectValue<UntypedNode>("machine_id", MachineId);
|
||||
writer.WriteIntValue("gpu_id", GpuId);
|
||||
writer.WriteLongValue("id", Id);
|
||||
writer.WriteIntValue("machine_id", MachineId);
|
||||
writer.WriteStringValue("name", Name);
|
||||
writer.WriteAdditionalData(AdditionalData);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user