/*
 * 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>
    /// GetNodesSingleCephOsdSingleMetadata200ResponseDataDevicesInner
    /// </summary>
    [DataContract(Name = "getNodesSingleCephOsdSingleMetadata_200_response_data_devices_inner")]
    public partial class GetNodesSingleCephOsdSingleMetadata200ResponseDataDevicesInner : IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="GetNodesSingleCephOsdSingleMetadata200ResponseDataDevicesInner" /> class.
        /// </summary>
        /// <param name="devNode">Device node.</param>
        /// <param name="device">Kind of OSD device.</param>
        /// <param name="devices">Physical disks used.</param>
        /// <param name="size">Size in bytes.</param>
        /// <param name="supportDiscard">Discard support of the physical device.</param>
        /// <param name="type">Type of device. For example, hdd or ssd.</param>
        public GetNodesSingleCephOsdSingleMetadata200ResponseDataDevicesInner(string devNode = default(string), string device = default(string), string devices = default(string), Int64 size = default(Int64), Int64 supportDiscard = default(Int64), string type = default(string))
        {
            this.DevNode = devNode;
            this.Device = device;
            this.Devices = devices;
            this.Size = size;
            this.SupportDiscard = supportDiscard;
            this.Type = type;
        }

        /// <summary>
        /// Device node
        /// </summary>
        /// <value>Device node</value>
        [DataMember(Name = "dev_node", EmitDefaultValue = false)]
        public string DevNode { get; set; }

        /// <summary>
        /// Kind of OSD device
        /// </summary>
        /// <value>Kind of OSD device</value>
        [DataMember(Name = "device", EmitDefaultValue = false)]
        public string Device { get; set; }

        /// <summary>
        /// Physical disks used
        /// </summary>
        /// <value>Physical disks used</value>
        [DataMember(Name = "devices", EmitDefaultValue = false)]
        public string Devices { get; set; }

        /// <summary>
        /// Size in bytes
        /// </summary>
        /// <value>Size in bytes</value>
        [DataMember(Name = "size", EmitDefaultValue = false)]
        public Int64 Size { get; set; }

        /// <summary>
        /// Discard support of the physical device
        /// </summary>
        /// <value>Discard support of the physical device</value>
        [DataMember(Name = "support_discard", EmitDefaultValue = false)]
        public Int64 SupportDiscard { get; set; }

        /// <summary>
        /// Type of device. For example, hdd or ssd
        /// </summary>
        /// <value>Type of device. For example, hdd or ssd</value>
        [DataMember(Name = "type", EmitDefaultValue = false)]
        public string Type { 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 GetNodesSingleCephOsdSingleMetadata200ResponseDataDevicesInner {\n");
            sb.Append("  DevNode: ").Append(DevNode).Append("\n");
            sb.Append("  Device: ").Append(Device).Append("\n");
            sb.Append("  Devices: ").Append(Devices).Append("\n");
            sb.Append("  Size: ").Append(Size).Append("\n");
            sb.Append("  SupportDiscard: ").Append(SupportDiscard).Append("\n");
            sb.Append("  Type: ").Append(Type).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;
        }
    }

}
