/*
 * 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>
    /// GetVersion200ResponseData
    /// </summary>
    [DataContract(Name = "getVersion_200_response_data")]
    public partial class GetVersion200ResponseData : IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="GetVersion200ResponseData" /> class.
        /// </summary>
        /// <param name="console">The default console viewer to use..</param>
        /// <param name="release">The current Proxmox VE point release in &#x60;x.y&#x60; format..</param>
        /// <param name="repoid">The short git revision from which this version was build..</param>
        /// <param name="varVersion">The full pve-manager package version of this node..</param>
        public GetVersion200ResponseData(string console = default(string), string release = default(string), string repoid = default(string), string varVersion = default(string))
        {
            this.Console = console;
            this.Release = release;
            this.Repoid = repoid;
            this.VarVersion = varVersion;
        }

        /// <summary>
        /// The default console viewer to use.
        /// </summary>
        /// <value>The default console viewer to use.</value>
        [DataMember(Name = "console", EmitDefaultValue = false)]
        public string Console { get; set; }

        /// <summary>
        /// The current Proxmox VE point release in &#x60;x.y&#x60; format.
        /// </summary>
        /// <value>The current Proxmox VE point release in &#x60;x.y&#x60; format.</value>
        [DataMember(Name = "release", EmitDefaultValue = false)]
        public string Release { get; set; }

        /// <summary>
        /// The short git revision from which this version was build.
        /// </summary>
        /// <value>The short git revision from which this version was build.</value>
        [DataMember(Name = "repoid", EmitDefaultValue = false)]
        public string Repoid { get; set; }

        /// <summary>
        /// The full pve-manager package version of this node.
        /// </summary>
        /// <value>The full pve-manager package version of this node.</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 GetVersion200ResponseData {\n");
            sb.Append("  Console: ").Append(Console).Append("\n");
            sb.Append("  Release: ").Append(Release).Append("\n");
            sb.Append("  Repoid: ").Append(Repoid).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;
        }
    }

}
