/*
 * 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>
    /// GetNodesSingleStorageSingleStatus200ResponseData
    /// </summary>
    [DataContract(Name = "getNodesSingleStorageSingleStatus_200_response_data")]
    public partial class GetNodesSingleStorageSingleStatus200ResponseData : IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="GetNodesSingleStorageSingleStatus200ResponseData" /> class.
        /// </summary>
        /// <param name="active">Set when storage is accessible..</param>
        /// <param name="avail">Available storage space in bytes..</param>
        /// <param name="content">Allowed storage content types..</param>
        /// <param name="enabled">Set when storage is enabled (not disabled)..</param>
        /// <param name="shared">Shared flag from storage configuration..</param>
        /// <param name="total">Total storage space in bytes..</param>
        /// <param name="type">Storage type..</param>
        /// <param name="used">Used storage space in bytes..</param>
        public GetNodesSingleStorageSingleStatus200ResponseData(Int64 active = default(Int64), Int64 avail = default(Int64), string content = default(string), Int64 enabled = default(Int64), Int64 shared = default(Int64), Int64 total = default(Int64), string type = default(string), Int64 used = default(Int64))
        {
            this.Active = active;
            this.Avail = avail;
            this.Content = content;
            this.Enabled = enabled;
            this.Shared = shared;
            this.Total = total;
            this.Type = type;
            this.Used = used;
        }

        /// <summary>
        /// Set when storage is accessible.
        /// </summary>
        /// <value>Set when storage is accessible.</value>
        [DataMember(Name = "active", EmitDefaultValue = false)]
        public Int64 Active { get; set; }

        /// <summary>
        /// Available storage space in bytes.
        /// </summary>
        /// <value>Available storage space in bytes.</value>
        [DataMember(Name = "avail", EmitDefaultValue = false)]
        public Int64 Avail { get; set; }

        /// <summary>
        /// Allowed storage content types.
        /// </summary>
        /// <value>Allowed storage content types.</value>
        [DataMember(Name = "content", EmitDefaultValue = false)]
        public string Content { get; set; }

        /// <summary>
        /// Set when storage is enabled (not disabled).
        /// </summary>
        /// <value>Set when storage is enabled (not disabled).</value>
        [DataMember(Name = "enabled", EmitDefaultValue = false)]
        public Int64 Enabled { get; set; }

        /// <summary>
        /// Shared flag from storage configuration.
        /// </summary>
        /// <value>Shared flag from storage configuration.</value>
        [DataMember(Name = "shared", EmitDefaultValue = false)]
        public Int64 Shared { get; set; }

        /// <summary>
        /// Total storage space in bytes.
        /// </summary>
        /// <value>Total storage space in bytes.</value>
        [DataMember(Name = "total", EmitDefaultValue = false)]
        public Int64 Total { get; set; }

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

        /// <summary>
        /// Used storage space in bytes.
        /// </summary>
        /// <value>Used storage space in bytes.</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 GetNodesSingleStorageSingleStatus200ResponseData {\n");
            sb.Append("  Active: ").Append(Active).Append("\n");
            sb.Append("  Avail: ").Append(Avail).Append("\n");
            sb.Append("  Content: ").Append(Content).Append("\n");
            sb.Append("  Enabled: ").Append(Enabled).Append("\n");
            sb.Append("  Shared: ").Append(Shared).Append("\n");
            sb.Append("  Total: ").Append(Total).Append("\n");
            sb.Append("  Type: ").Append(Type).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;
        }
    }

}
