/* * 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 { /// /// CreateClusterSdnFabricsNodeSingleRequest /// [DataContract(Name = "CreateClusterSdnFabricsNodeSingleRequest")] public partial class CreateClusterSdnFabricsNodeSingleRequest : IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected CreateClusterSdnFabricsNodeSingleRequest() { } /// /// Initializes a new instance of the class. /// /// digest. /// interfaces (required). /// ip. /// ip6. /// lockToken. /// nodeId (required). /// protocol (required). public CreateClusterSdnFabricsNodeSingleRequest(string digest = default(string), List interfaces = default(List), string ip = default(string), string ip6 = default(string), string lockToken = default(string), string nodeId = default(string), string protocol = default(string)) { // to ensure "interfaces" is required (not null) if (interfaces == null) { throw new ArgumentNullException("interfaces is a required property for CreateClusterSdnFabricsNodeSingleRequest and cannot be null"); } this.Interfaces = interfaces; // to ensure "nodeId" is required (not null) if (nodeId == null) { throw new ArgumentNullException("nodeId is a required property for CreateClusterSdnFabricsNodeSingleRequest and cannot be null"); } this.NodeId = nodeId; // to ensure "protocol" is required (not null) if (protocol == null) { throw new ArgumentNullException("protocol is a required property for CreateClusterSdnFabricsNodeSingleRequest and cannot be null"); } this.Protocol = protocol; this.Digest = digest; this.Ip = ip; this.Ip6 = ip6; this.LockToken = lockToken; } /// /// Gets or Sets Digest /// [DataMember(Name = "digest", EmitDefaultValue = false)] public string Digest { get; set; } /// /// Gets or Sets Interfaces /// [DataMember(Name = "interfaces", IsRequired = true, EmitDefaultValue = true)] public List Interfaces { get; set; } /// /// Gets or Sets Ip /// [DataMember(Name = "ip", EmitDefaultValue = false)] public string Ip { get; set; } /// /// Gets or Sets Ip6 /// [DataMember(Name = "ip6", EmitDefaultValue = false)] public string Ip6 { get; set; } /// /// Gets or Sets LockToken /// [DataMember(Name = "lock-token", EmitDefaultValue = false)] public string LockToken { get; set; } /// /// Gets or Sets NodeId /// [DataMember(Name = "node_id", IsRequired = true, EmitDefaultValue = true)] public string NodeId { get; set; } /// /// Gets or Sets Protocol /// [DataMember(Name = "protocol", IsRequired = true, EmitDefaultValue = true)] public string Protocol { 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 CreateClusterSdnFabricsNodeSingleRequest {\n"); sb.Append(" Digest: ").Append(Digest).Append("\n"); sb.Append(" Interfaces: ").Append(Interfaces).Append("\n"); sb.Append(" Ip: ").Append(Ip).Append("\n"); sb.Append(" Ip6: ").Append(Ip6).Append("\n"); sb.Append(" LockToken: ").Append(LockToken).Append("\n"); sb.Append(" NodeId: ").Append(NodeId).Append("\n"); sb.Append(" Protocol: ").Append(Protocol).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; } } }