/*
 * 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>
    /// Result from parsing the APT repository files in /etc/apt/.
    /// </summary>
    [DataContract(Name = "getNodesSingleAptRepositories_200_response_data")]
    public partial class GetNodesSingleAptRepositories200ResponseData : IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="GetNodesSingleAptRepositories200ResponseData" /> class.
        /// </summary>
        /// <param name="digest">Common digest of all files..</param>
        /// <param name="errors">List of problematic repository files..</param>
        /// <param name="files">List of parsed repository files..</param>
        /// <param name="infos">Additional information/warnings for APT repositories..</param>
        /// <param name="standardRepos">List of standard repositories and their configuration status.</param>
        public GetNodesSingleAptRepositories200ResponseData(string digest = default(string), List<GetNodesSingleAptRepositories200ResponseDataErrorsInner> errors = default(List<GetNodesSingleAptRepositories200ResponseDataErrorsInner>), List<GetNodesSingleAptRepositories200ResponseDataFilesInner> files = default(List<GetNodesSingleAptRepositories200ResponseDataFilesInner>), List<GetNodesSingleAptRepositories200ResponseDataInfosInner> infos = default(List<GetNodesSingleAptRepositories200ResponseDataInfosInner>), List<GetNodesSingleAptRepositories200ResponseDataStandardReposInner> standardRepos = default(List<GetNodesSingleAptRepositories200ResponseDataStandardReposInner>))
        {
            this.Digest = digest;
            this.Errors = errors;
            this.Files = files;
            this.Infos = infos;
            this.StandardRepos = standardRepos;
        }

        /// <summary>
        /// Common digest of all files.
        /// </summary>
        /// <value>Common digest of all files.</value>
        [DataMember(Name = "digest", EmitDefaultValue = false)]
        public string Digest { get; set; }

        /// <summary>
        /// List of problematic repository files.
        /// </summary>
        /// <value>List of problematic repository files.</value>
        [DataMember(Name = "errors", EmitDefaultValue = false)]
        public List<GetNodesSingleAptRepositories200ResponseDataErrorsInner> Errors { get; set; }

        /// <summary>
        /// List of parsed repository files.
        /// </summary>
        /// <value>List of parsed repository files.</value>
        [DataMember(Name = "files", EmitDefaultValue = false)]
        public List<GetNodesSingleAptRepositories200ResponseDataFilesInner> Files { get; set; }

        /// <summary>
        /// Additional information/warnings for APT repositories.
        /// </summary>
        /// <value>Additional information/warnings for APT repositories.</value>
        [DataMember(Name = "infos", EmitDefaultValue = false)]
        public List<GetNodesSingleAptRepositories200ResponseDataInfosInner> Infos { get; set; }

        /// <summary>
        /// List of standard repositories and their configuration status
        /// </summary>
        /// <value>List of standard repositories and their configuration status</value>
        [DataMember(Name = "standard-repos", EmitDefaultValue = false)]
        public List<GetNodesSingleAptRepositories200ResponseDataStandardReposInner> StandardRepos { 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 GetNodesSingleAptRepositories200ResponseData {\n");
            sb.Append("  Digest: ").Append(Digest).Append("\n");
            sb.Append("  Errors: ").Append(Errors).Append("\n");
            sb.Append("  Files: ").Append(Files).Append("\n");
            sb.Append("  Infos: ").Append(Infos).Append("\n");
            sb.Append("  StandardRepos: ").Append(StandardRepos).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;
        }
    }

}
