/*
 * ProxMox VE API
 *
 * ProxMox VE API
 *
 * The version of the OpenAPI document: 2.0
 * Contact: support@lumaserv.com
 * Generated by: https://github.com/openapitools/openapi-generator.git
 */


using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.IO;
using System.Runtime.Serialization;
using System.Text;
using System.Text.RegularExpressions;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Linq;
using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = ProxmoxSharp.Client.OpenAPIDateConverter;

namespace ProxmoxSharp.Model
{
    /// <summary>
    /// GetNodesSingleStatus200ResponseData
    /// </summary>
    [DataContract(Name = "getNodesSingleStatus_200_response_data")]
    public partial class GetNodesSingleStatus200ResponseData : IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="GetNodesSingleStatus200ResponseData" /> class.
        /// </summary>
        /// <param name="bootInfo">bootInfo.</param>
        /// <param name="cpu">The current cpu usage..</param>
        /// <param name="cpuinfo">cpuinfo.</param>
        /// <param name="currentKernel">currentKernel.</param>
        /// <param name="loadavg">An array of load avg for 1, 5 and 15 minutes respectively..</param>
        /// <param name="memory">memory.</param>
        /// <param name="pveversion">The PVE version string..</param>
        /// <param name="rootfs">rootfs.</param>
        public GetNodesSingleStatus200ResponseData(GetNodesSingleStatus200ResponseDataBootInfo bootInfo = default(GetNodesSingleStatus200ResponseDataBootInfo), decimal cpu = default(decimal), GetNodesSingleStatus200ResponseDataCpuinfo cpuinfo = default(GetNodesSingleStatus200ResponseDataCpuinfo), GetNodesSingleStatus200ResponseDataCurrentKernel currentKernel = default(GetNodesSingleStatus200ResponseDataCurrentKernel), List<string> loadavg = default(List<string>), GetNodesSingleStatus200ResponseDataMemory memory = default(GetNodesSingleStatus200ResponseDataMemory), string pveversion = default(string), GetNodesSingleStatus200ResponseDataRootfs rootfs = default(GetNodesSingleStatus200ResponseDataRootfs))
        {
            this.BootInfo = bootInfo;
            this.Cpu = cpu;
            this.Cpuinfo = cpuinfo;
            this.CurrentKernel = currentKernel;
            this.Loadavg = loadavg;
            this.Memory = memory;
            this.Pveversion = pveversion;
            this.Rootfs = rootfs;
        }

        /// <summary>
        /// Gets or Sets BootInfo
        /// </summary>
        [DataMember(Name = "boot-info", EmitDefaultValue = false)]
        public GetNodesSingleStatus200ResponseDataBootInfo BootInfo { get; set; }

        /// <summary>
        /// The current cpu usage.
        /// </summary>
        /// <value>The current cpu usage.</value>
        [DataMember(Name = "cpu", EmitDefaultValue = false)]
        public decimal Cpu { get; set; }

        /// <summary>
        /// Gets or Sets Cpuinfo
        /// </summary>
        [DataMember(Name = "cpuinfo", EmitDefaultValue = false)]
        public GetNodesSingleStatus200ResponseDataCpuinfo Cpuinfo { get; set; }

        /// <summary>
        /// Gets or Sets CurrentKernel
        /// </summary>
        [DataMember(Name = "current-kernel", EmitDefaultValue = false)]
        public GetNodesSingleStatus200ResponseDataCurrentKernel CurrentKernel { get; set; }

        /// <summary>
        /// An array of load avg for 1, 5 and 15 minutes respectively.
        /// </summary>
        /// <value>An array of load avg for 1, 5 and 15 minutes respectively.</value>
        [DataMember(Name = "loadavg", EmitDefaultValue = false)]
        public List<string> Loadavg { get; set; }

        /// <summary>
        /// Gets or Sets Memory
        /// </summary>
        [DataMember(Name = "memory", EmitDefaultValue = false)]
        public GetNodesSingleStatus200ResponseDataMemory Memory { get; set; }

        /// <summary>
        /// The PVE version string.
        /// </summary>
        /// <value>The PVE version string.</value>
        [DataMember(Name = "pveversion", EmitDefaultValue = false)]
        public string Pveversion { get; set; }

        /// <summary>
        /// Gets or Sets Rootfs
        /// </summary>
        [DataMember(Name = "rootfs", EmitDefaultValue = false)]
        public GetNodesSingleStatus200ResponseDataRootfs Rootfs { get; set; }

        /// <summary>
        /// Returns the string presentation of the object
        /// </summary>
        /// <returns>String presentation of the object</returns>
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder();
            sb.Append("class GetNodesSingleStatus200ResponseData {\n");
            sb.Append("  BootInfo: ").Append(BootInfo).Append("\n");
            sb.Append("  Cpu: ").Append(Cpu).Append("\n");
            sb.Append("  Cpuinfo: ").Append(Cpuinfo).Append("\n");
            sb.Append("  CurrentKernel: ").Append(CurrentKernel).Append("\n");
            sb.Append("  Loadavg: ").Append(Loadavg).Append("\n");
            sb.Append("  Memory: ").Append(Memory).Append("\n");
            sb.Append("  Pveversion: ").Append(Pveversion).Append("\n");
            sb.Append("  Rootfs: ").Append(Rootfs).Append("\n");
            sb.Append("}\n");
            return sb.ToString();
        }

        /// <summary>
        /// Returns the JSON string presentation of the object
        /// </summary>
        /// <returns>JSON string presentation of the object</returns>
        public virtual string ToJson()
        {
            return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
        }

        /// <summary>
        /// To validate all properties of the instance
        /// </summary>
        /// <param name="validationContext">Validation context</param>
        /// <returns>Validation Result</returns>
        IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
        {
            yield break;
        }
    }

}
