/*
 * 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>
    /// General information about the OSD
    /// </summary>
    [DataContract(Name = "getNodesSingleCephOsdSingleMetadata_200_response_data_osd")]
    public partial class GetNodesSingleCephOsdSingleMetadata200ResponseDataOsd : IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="GetNodesSingleCephOsdSingleMetadata200ResponseDataOsd" /> class.
        /// </summary>
        /// <param name="backAddr">Address and port used to talk to other OSDs..</param>
        /// <param name="frontAddr">Address and port used to talk to clients and monitors..</param>
        /// <param name="hbBackAddr">Heartbeat address and port for other OSDs..</param>
        /// <param name="hbFrontAddr">Heartbeat address and port for clients and monitors..</param>
        /// <param name="hostname">Name of the host containing the OSD..</param>
        /// <param name="id">ID of the OSD..</param>
        /// <param name="memUsage">Memory usage of the OSD service..</param>
        /// <param name="osdData">Path to the OSD&#39;s data directory..</param>
        /// <param name="osdObjectstore">The type of object store used..</param>
        /// <param name="pid">OSD process ID..</param>
        /// <param name="varVersion">Ceph version of the OSD service..</param>
        public GetNodesSingleCephOsdSingleMetadata200ResponseDataOsd(string backAddr = default(string), string frontAddr = default(string), string hbBackAddr = default(string), string hbFrontAddr = default(string), string hostname = default(string), Int64 id = default(Int64), Int64 memUsage = default(Int64), string osdData = default(string), string osdObjectstore = default(string), Int64 pid = default(Int64), string varVersion = default(string))
        {
            this.BackAddr = backAddr;
            this.FrontAddr = frontAddr;
            this.HbBackAddr = hbBackAddr;
            this.HbFrontAddr = hbFrontAddr;
            this.Hostname = hostname;
            this.Id = id;
            this.MemUsage = memUsage;
            this.OsdData = osdData;
            this.OsdObjectstore = osdObjectstore;
            this.Pid = pid;
            this.VarVersion = varVersion;
        }

        /// <summary>
        /// Address and port used to talk to other OSDs.
        /// </summary>
        /// <value>Address and port used to talk to other OSDs.</value>
        [DataMember(Name = "back_addr", EmitDefaultValue = false)]
        public string BackAddr { get; set; }

        /// <summary>
        /// Address and port used to talk to clients and monitors.
        /// </summary>
        /// <value>Address and port used to talk to clients and monitors.</value>
        [DataMember(Name = "front_addr", EmitDefaultValue = false)]
        public string FrontAddr { get; set; }

        /// <summary>
        /// Heartbeat address and port for other OSDs.
        /// </summary>
        /// <value>Heartbeat address and port for other OSDs.</value>
        [DataMember(Name = "hb_back_addr", EmitDefaultValue = false)]
        public string HbBackAddr { get; set; }

        /// <summary>
        /// Heartbeat address and port for clients and monitors.
        /// </summary>
        /// <value>Heartbeat address and port for clients and monitors.</value>
        [DataMember(Name = "hb_front_addr", EmitDefaultValue = false)]
        public string HbFrontAddr { get; set; }

        /// <summary>
        /// Name of the host containing the OSD.
        /// </summary>
        /// <value>Name of the host containing the OSD.</value>
        [DataMember(Name = "hostname", EmitDefaultValue = false)]
        public string Hostname { get; set; }

        /// <summary>
        /// ID of the OSD.
        /// </summary>
        /// <value>ID of the OSD.</value>
        [DataMember(Name = "id", EmitDefaultValue = false)]
        public Int64 Id { get; set; }

        /// <summary>
        /// Memory usage of the OSD service.
        /// </summary>
        /// <value>Memory usage of the OSD service.</value>
        [DataMember(Name = "mem_usage", EmitDefaultValue = false)]
        public Int64 MemUsage { get; set; }

        /// <summary>
        /// Path to the OSD&#39;s data directory.
        /// </summary>
        /// <value>Path to the OSD&#39;s data directory.</value>
        [DataMember(Name = "osd_data", EmitDefaultValue = false)]
        public string OsdData { get; set; }

        /// <summary>
        /// The type of object store used.
        /// </summary>
        /// <value>The type of object store used.</value>
        [DataMember(Name = "osd_objectstore", EmitDefaultValue = false)]
        public string OsdObjectstore { get; set; }

        /// <summary>
        /// OSD process ID.
        /// </summary>
        /// <value>OSD process ID.</value>
        [DataMember(Name = "pid", EmitDefaultValue = false)]
        public Int64 Pid { get; set; }

        /// <summary>
        /// Ceph version of the OSD service.
        /// </summary>
        /// <value>Ceph version of the OSD service.</value>
        [DataMember(Name = "version", EmitDefaultValue = false)]
        public string VarVersion { 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 GetNodesSingleCephOsdSingleMetadata200ResponseDataOsd {\n");
            sb.Append("  BackAddr: ").Append(BackAddr).Append("\n");
            sb.Append("  FrontAddr: ").Append(FrontAddr).Append("\n");
            sb.Append("  HbBackAddr: ").Append(HbBackAddr).Append("\n");
            sb.Append("  HbFrontAddr: ").Append(HbFrontAddr).Append("\n");
            sb.Append("  Hostname: ").Append(Hostname).Append("\n");
            sb.Append("  Id: ").Append(Id).Append("\n");
            sb.Append("  MemUsage: ").Append(MemUsage).Append("\n");
            sb.Append("  OsdData: ").Append(OsdData).Append("\n");
            sb.Append("  OsdObjectstore: ").Append(OsdObjectstore).Append("\n");
            sb.Append("  Pid: ").Append(Pid).Append("\n");
            sb.Append("  VarVersion: ").Append(VarVersion).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;
        }
    }

}
