/*
 * 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>
    /// GetNodesSingleAptRepositories200ResponseDataFilesInner
    /// </summary>
    [DataContract(Name = "getNodesSingleAptRepositories_200_response_data_files_inner")]
    public partial class GetNodesSingleAptRepositories200ResponseDataFilesInner : IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="GetNodesSingleAptRepositories200ResponseDataFilesInner" /> class.
        /// </summary>
        /// <param name="digest">Digest of the file as bytes..</param>
        /// <param name="fileType">Format of the file..</param>
        /// <param name="path">Path to the problematic file..</param>
        /// <param name="repositories">The parsed repositories..</param>
        public GetNodesSingleAptRepositories200ResponseDataFilesInner(List<Int64> digest = default(List<Int64>), string fileType = default(string), string path = default(string), List<GetNodesSingleAptRepositories200ResponseDataFilesInnerRepositoriesInner> repositories = default(List<GetNodesSingleAptRepositories200ResponseDataFilesInnerRepositoriesInner>))
        {
            this.Digest = digest;
            this.FileType = fileType;
            this.Path = path;
            this.Repositories = repositories;
        }

        /// <summary>
        /// Digest of the file as bytes.
        /// </summary>
        /// <value>Digest of the file as bytes.</value>
        [DataMember(Name = "digest", EmitDefaultValue = false)]
        public List<Int64> Digest { get; set; }

        /// <summary>
        /// Format of the file.
        /// </summary>
        /// <value>Format of the file.</value>
        [DataMember(Name = "file-type", EmitDefaultValue = false)]
        public string FileType { get; set; }

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

        /// <summary>
        /// The parsed repositories.
        /// </summary>
        /// <value>The parsed repositories.</value>
        [DataMember(Name = "repositories", EmitDefaultValue = false)]
        public List<GetNodesSingleAptRepositories200ResponseDataFilesInnerRepositoriesInner> Repositories { 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 GetNodesSingleAptRepositories200ResponseDataFilesInner {\n");
            sb.Append("  Digest: ").Append(Digest).Append("\n");
            sb.Append("  FileType: ").Append(FileType).Append("\n");
            sb.Append("  Path: ").Append(Path).Append("\n");
            sb.Append("  Repositories: ").Append(Repositories).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;
        }
    }

}
