/*
 * 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>
    /// GetNodesSingleDisksZfsSingle200ResponseData
    /// </summary>
    [DataContract(Name = "getNodesSingleDisksZfsSingle_200_response_data")]
    public partial class GetNodesSingleDisksZfsSingle200ResponseData : IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="GetNodesSingleDisksZfsSingle200ResponseData" /> class.
        /// </summary>
        /// <param name="action">Information about the recommended action to fix the state..</param>
        /// <param name="children">The pool configuration information, including the vdevs for each section (e.g. spares, cache), may be nested..</param>
        /// <param name="errors">Information about the errors on the zpool..</param>
        /// <param name="name">The name of the zpool..</param>
        /// <param name="scan">Information about the last/current scrub..</param>
        /// <param name="state">The state of the zpool..</param>
        /// <param name="status">Information about the state of the zpool..</param>
        public GetNodesSingleDisksZfsSingle200ResponseData(string action = default(string), List<GetNodesSingleDisksZfsSingle200ResponseDataChildrenInner> children = default(List<GetNodesSingleDisksZfsSingle200ResponseDataChildrenInner>), string errors = default(string), string name = default(string), string scan = default(string), string state = default(string), string status = default(string))
        {
            this.Action = action;
            this.Children = children;
            this.Errors = errors;
            this.Name = name;
            this.Scan = scan;
            this.State = state;
            this.Status = status;
        }

        /// <summary>
        /// Information about the recommended action to fix the state.
        /// </summary>
        /// <value>Information about the recommended action to fix the state.</value>
        [DataMember(Name = "action", EmitDefaultValue = false)]
        public string Action { get; set; }

        /// <summary>
        /// The pool configuration information, including the vdevs for each section (e.g. spares, cache), may be nested.
        /// </summary>
        /// <value>The pool configuration information, including the vdevs for each section (e.g. spares, cache), may be nested.</value>
        [DataMember(Name = "children", EmitDefaultValue = false)]
        public List<GetNodesSingleDisksZfsSingle200ResponseDataChildrenInner> Children { get; set; }

        /// <summary>
        /// Information about the errors on the zpool.
        /// </summary>
        /// <value>Information about the errors on the zpool.</value>
        [DataMember(Name = "errors", EmitDefaultValue = false)]
        public string Errors { get; set; }

        /// <summary>
        /// The name of the zpool.
        /// </summary>
        /// <value>The name of the zpool.</value>
        [DataMember(Name = "name", EmitDefaultValue = false)]
        public string Name { get; set; }

        /// <summary>
        /// Information about the last/current scrub.
        /// </summary>
        /// <value>Information about the last/current scrub.</value>
        [DataMember(Name = "scan", EmitDefaultValue = false)]
        public string Scan { get; set; }

        /// <summary>
        /// The state of the zpool.
        /// </summary>
        /// <value>The state of the zpool.</value>
        [DataMember(Name = "state", EmitDefaultValue = false)]
        public string State { get; set; }

        /// <summary>
        /// Information about the state of the zpool.
        /// </summary>
        /// <value>Information about the state of the zpool.</value>
        [DataMember(Name = "status", EmitDefaultValue = false)]
        public string Status { 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 GetNodesSingleDisksZfsSingle200ResponseData {\n");
            sb.Append("  Action: ").Append(Action).Append("\n");
            sb.Append("  Children: ").Append(Children).Append("\n");
            sb.Append("  Errors: ").Append(Errors).Append("\n");
            sb.Append("  Name: ").Append(Name).Append("\n");
            sb.Append("  Scan: ").Append(Scan).Append("\n");
            sb.Append("  State: ").Append(State).Append("\n");
            sb.Append("  Status: ").Append(Status).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;
        }
    }

}
