/*
 * 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>
    /// Information about how to import a guest.
    /// </summary>
    [DataContract(Name = "getNodesSingleStorageSingleImportmetadata_200_response_data")]
    public partial class GetNodesSingleStorageSingleImportmetadata200ResponseData : IValidatableObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="GetNodesSingleStorageSingleImportmetadata200ResponseData" /> class.
        /// </summary>
        /// <param name="createArgs">Parameters which can be used in a call to create a VM or container..</param>
        /// <param name="disks">Recognised disk volumes as &#x60;$bus$id&#x60; &#x3D;&gt; &#x60;$storeid:$path&#x60; map..</param>
        /// <param name="net">Recognised network interfaces as &#x60;net$id&#x60; &#x3D;&gt; { ...params } object..</param>
        /// <param name="source">The type of the import-source of this guest volume..</param>
        /// <param name="type">The type of guest this is going to produce..</param>
        /// <param name="warnings">List of known issues that can affect the import of a guest. Note that lack of warning does not imply that there cannot be any problems..</param>
        public GetNodesSingleStorageSingleImportmetadata200ResponseData(Object createArgs = default(Object), Object disks = default(Object), Object net = default(Object), string source = default(string), string type = default(string), List<GetNodesSingleStorageSingleImportmetadata200ResponseDataWarningsInner> warnings = default(List<GetNodesSingleStorageSingleImportmetadata200ResponseDataWarningsInner>))
        {
            this.CreateArgs = createArgs;
            this.Disks = disks;
            this.Net = net;
            this.Source = source;
            this.Type = type;
            this.Warnings = warnings;
        }

        /// <summary>
        /// Parameters which can be used in a call to create a VM or container.
        /// </summary>
        /// <value>Parameters which can be used in a call to create a VM or container.</value>
        [DataMember(Name = "create-args", EmitDefaultValue = false)]
        public Object CreateArgs { get; set; }

        /// <summary>
        /// Recognised disk volumes as &#x60;$bus$id&#x60; &#x3D;&gt; &#x60;$storeid:$path&#x60; map.
        /// </summary>
        /// <value>Recognised disk volumes as &#x60;$bus$id&#x60; &#x3D;&gt; &#x60;$storeid:$path&#x60; map.</value>
        [DataMember(Name = "disks", EmitDefaultValue = false)]
        public Object Disks { get; set; }

        /// <summary>
        /// Recognised network interfaces as &#x60;net$id&#x60; &#x3D;&gt; { ...params } object.
        /// </summary>
        /// <value>Recognised network interfaces as &#x60;net$id&#x60; &#x3D;&gt; { ...params } object.</value>
        [DataMember(Name = "net", EmitDefaultValue = false)]
        public Object Net { get; set; }

        /// <summary>
        /// The type of the import-source of this guest volume.
        /// </summary>
        /// <value>The type of the import-source of this guest volume.</value>
        [DataMember(Name = "source", EmitDefaultValue = false)]
        public string Source { get; set; }

        /// <summary>
        /// The type of guest this is going to produce.
        /// </summary>
        /// <value>The type of guest this is going to produce.</value>
        [DataMember(Name = "type", EmitDefaultValue = false)]
        public string Type { get; set; }

        /// <summary>
        /// List of known issues that can affect the import of a guest. Note that lack of warning does not imply that there cannot be any problems.
        /// </summary>
        /// <value>List of known issues that can affect the import of a guest. Note that lack of warning does not imply that there cannot be any problems.</value>
        [DataMember(Name = "warnings", EmitDefaultValue = false)]
        public List<GetNodesSingleStorageSingleImportmetadata200ResponseDataWarningsInner> Warnings { 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 GetNodesSingleStorageSingleImportmetadata200ResponseData {\n");
            sb.Append("  CreateArgs: ").Append(CreateArgs).Append("\n");
            sb.Append("  Disks: ").Append(Disks).Append("\n");
            sb.Append("  Net: ").Append(Net).Append("\n");
            sb.Append("  Source: ").Append(Source).Append("\n");
            sb.Append("  Type: ").Append(Type).Append("\n");
            sb.Append("  Warnings: ").Append(Warnings).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;
        }
    }

}
