/*
 * 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>
    /// GetNodesSingleStorageSingleContentSingle200ResponseData
    /// </summary>
    [DataContract(Name = "getNodesSingleStorageSingleContentSingle_200_response_data")]
    public partial class GetNodesSingleStorageSingleContentSingle200ResponseData : IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="GetNodesSingleStorageSingleContentSingle200ResponseData" /> class.
        /// </summary>
        /// <param name="format">Format identifier (&#39;raw&#39;, &#39;qcow2&#39;, &#39;subvol&#39;, &#39;iso&#39;, &#39;tgz&#39; ...).</param>
        /// <param name="notes">Optional notes..</param>
        /// <param name="path">The Path.</param>
        /// <param name="varProtected">Protection status. Currently only supported for backups..</param>
        /// <param name="size">Volume size in bytes..</param>
        /// <param name="used">Used space. Please note that most storage plugins do not report anything useful here..</param>
        public GetNodesSingleStorageSingleContentSingle200ResponseData(string format = default(string), string notes = default(string), string path = default(string), Int64 varProtected = default(Int64), Int64 size = default(Int64), Int64 used = default(Int64))
        {
            this.Format = format;
            this.Notes = notes;
            this.Path = path;
            this.Protected = varProtected;
            this.Size = size;
            this.Used = used;
        }

        /// <summary>
        /// Format identifier (&#39;raw&#39;, &#39;qcow2&#39;, &#39;subvol&#39;, &#39;iso&#39;, &#39;tgz&#39; ...)
        /// </summary>
        /// <value>Format identifier (&#39;raw&#39;, &#39;qcow2&#39;, &#39;subvol&#39;, &#39;iso&#39;, &#39;tgz&#39; ...)</value>
        [DataMember(Name = "format", EmitDefaultValue = false)]
        public string Format { get; set; }

        /// <summary>
        /// Optional notes.
        /// </summary>
        /// <value>Optional notes.</value>
        [DataMember(Name = "notes", EmitDefaultValue = false)]
        public string Notes { get; set; }

        /// <summary>
        /// The Path
        /// </summary>
        /// <value>The Path</value>
        [DataMember(Name = "path", EmitDefaultValue = false)]
        public string Path { get; set; }

        /// <summary>
        /// Protection status. Currently only supported for backups.
        /// </summary>
        /// <value>Protection status. Currently only supported for backups.</value>
        [DataMember(Name = "protected", EmitDefaultValue = false)]
        public Int64 Protected { get; set; }

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

        /// <summary>
        /// Used space. Please note that most storage plugins do not report anything useful here.
        /// </summary>
        /// <value>Used space. Please note that most storage plugins do not report anything useful here.</value>
        [DataMember(Name = "used", EmitDefaultValue = false)]
        public Int64 Used { 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 GetNodesSingleStorageSingleContentSingle200ResponseData {\n");
            sb.Append("  Format: ").Append(Format).Append("\n");
            sb.Append("  Notes: ").Append(Notes).Append("\n");
            sb.Append("  Path: ").Append(Path).Append("\n");
            sb.Append("  Protected: ").Append(Protected).Append("\n");
            sb.Append("  Size: ").Append(Size).Append("\n");
            sb.Append("  Used: ").Append(Used).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;
        }
    }

}
