/* * 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 { /// /// CreateClusterMappingDirRequest /// [DataContract(Name = "CreateClusterMappingDirRequest")] public partial class CreateClusterMappingDirRequest : IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected CreateClusterMappingDirRequest() { } /// /// Initializes a new instance of the class. /// /// description. /// id (required). /// map (required). public CreateClusterMappingDirRequest(string description = default(string), string id = default(string), List map = default(List)) { // to ensure "id" is required (not null) if (id == null) { throw new ArgumentNullException("id is a required property for CreateClusterMappingDirRequest and cannot be null"); } this.Id = id; // to ensure "map" is required (not null) if (map == null) { throw new ArgumentNullException("map is a required property for CreateClusterMappingDirRequest and cannot be null"); } this.Map = map; this.Description = description; } /// /// Gets or Sets Description /// [DataMember(Name = "description", EmitDefaultValue = false)] public string Description { get; set; } /// /// Gets or Sets Id /// [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] public string Id { get; set; } /// /// Gets or Sets Map /// [DataMember(Name = "map", IsRequired = true, EmitDefaultValue = true)] public List Map { get; set; } /// /// Returns the string presentation of the object /// /// String presentation of the object public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class CreateClusterMappingDirRequest {\n"); sb.Append(" Description: ").Append(Description).Append("\n"); sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" Map: ").Append(Map).Append("\n"); sb.Append("}\n"); return sb.ToString(); } /// /// Returns the JSON string presentation of the object /// /// JSON string presentation of the object public virtual string ToJson() { return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); } /// /// To validate all properties of the instance /// /// Validation context /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { yield break; } } }