/*
 * 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>
    /// GetNodesSingleStorageSingleContent200ResponseDataInner
    /// </summary>
    [DataContract(Name = "getNodesSingleStorageSingleContent_200_response_data_inner")]
    public partial class GetNodesSingleStorageSingleContent200ResponseDataInner : IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="GetNodesSingleStorageSingleContent200ResponseDataInner" /> class.
        /// </summary>
        /// <param name="ctime">Creation time (seconds since the UNIX Epoch)..</param>
        /// <param name="encrypted">If whole backup is encrypted, value is the fingerprint or &#39;1&#39;  if encrypted. Only useful for the Proxmox Backup Server storage type..</param>
        /// <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. If they contain multiple lines, only the first one is returned here..</param>
        /// <param name="parent">Volume identifier of parent (for linked cloned)..</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>
        /// <param name="verification">verification.</param>
        /// <param name="vmid">Associated Owner VMID..</param>
        /// <param name="volid">Volume identifier..</param>
        public GetNodesSingleStorageSingleContent200ResponseDataInner(Int64 ctime = default(Int64), string encrypted = default(string), string format = default(string), string notes = default(string), string parent = default(string), Int64 varProtected = default(Int64), Int64 size = default(Int64), Int64 used = default(Int64), GetNodesSingleStorageSingleContent200ResponseDataInnerVerification verification = default(GetNodesSingleStorageSingleContent200ResponseDataInnerVerification), Int64 vmid = default(Int64), string volid = default(string))
        {
            this.Ctime = ctime;
            this.Encrypted = encrypted;
            this.Format = format;
            this.Notes = notes;
            this.Parent = parent;
            this.Protected = varProtected;
            this.Size = size;
            this.Used = used;
            this.Verification = verification;
            this.Vmid = vmid;
            this.Volid = volid;
        }

        /// <summary>
        /// Creation time (seconds since the UNIX Epoch).
        /// </summary>
        /// <value>Creation time (seconds since the UNIX Epoch).</value>
        [DataMember(Name = "ctime", EmitDefaultValue = false)]
        public Int64 Ctime { get; set; }

        /// <summary>
        /// If whole backup is encrypted, value is the fingerprint or &#39;1&#39;  if encrypted. Only useful for the Proxmox Backup Server storage type.
        /// </summary>
        /// <value>If whole backup is encrypted, value is the fingerprint or &#39;1&#39;  if encrypted. Only useful for the Proxmox Backup Server storage type.</value>
        [DataMember(Name = "encrypted", EmitDefaultValue = false)]
        public string Encrypted { get; set; }

        /// <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. If they contain multiple lines, only the first one is returned here.
        /// </summary>
        /// <value>Optional notes. If they contain multiple lines, only the first one is returned here.</value>
        [DataMember(Name = "notes", EmitDefaultValue = false)]
        public string Notes { get; set; }

        /// <summary>
        /// Volume identifier of parent (for linked cloned).
        /// </summary>
        /// <value>Volume identifier of parent (for linked cloned).</value>
        [DataMember(Name = "parent", EmitDefaultValue = false)]
        public string Parent { 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>
        /// Gets or Sets Verification
        /// </summary>
        [DataMember(Name = "verification", EmitDefaultValue = false)]
        public GetNodesSingleStorageSingleContent200ResponseDataInnerVerification Verification { get; set; }

        /// <summary>
        /// Associated Owner VMID.
        /// </summary>
        /// <value>Associated Owner VMID.</value>
        [DataMember(Name = "vmid", EmitDefaultValue = false)]
        public Int64 Vmid { get; set; }

        /// <summary>
        /// Volume identifier.
        /// </summary>
        /// <value>Volume identifier.</value>
        [DataMember(Name = "volid", EmitDefaultValue = false)]
        public string Volid { 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 GetNodesSingleStorageSingleContent200ResponseDataInner {\n");
            sb.Append("  Ctime: ").Append(Ctime).Append("\n");
            sb.Append("  Encrypted: ").Append(Encrypted).Append("\n");
            sb.Append("  Format: ").Append(Format).Append("\n");
            sb.Append("  Notes: ").Append(Notes).Append("\n");
            sb.Append("  Parent: ").Append(Parent).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("  Verification: ").Append(Verification).Append("\n");
            sb.Append("  Vmid: ").Append(Vmid).Append("\n");
            sb.Append("  Volid: ").Append(Volid).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;
        }
    }

}
