/* * 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 { /// /// CreateClusterAcmePluginsRequest /// [DataContract(Name = "CreateClusterAcmePluginsRequest")] public partial class CreateClusterAcmePluginsRequest : IValidatableObject { /// /// Initializes a new instance of the class. /// [JsonConstructorAttribute] protected CreateClusterAcmePluginsRequest() { } /// /// Initializes a new instance of the class. /// /// api. /// data. /// disable. /// id (required). /// nodes. /// type (required). /// validationDelay. public CreateClusterAcmePluginsRequest(string api = default(string), string data = default(string), bool disable = default(bool), string id = default(string), string nodes = default(string), string type = default(string), int validationDelay = default(int)) { // to ensure "id" is required (not null) if (id == null) { throw new ArgumentNullException("id is a required property for CreateClusterAcmePluginsRequest and cannot be null"); } this.Id = id; // to ensure "type" is required (not null) if (type == null) { throw new ArgumentNullException("type is a required property for CreateClusterAcmePluginsRequest and cannot be null"); } this.Type = type; this.Api = api; this.Data = data; this.Disable = disable; this.Nodes = nodes; this.ValidationDelay = validationDelay; } /// /// Gets or Sets Api /// [DataMember(Name = "api", EmitDefaultValue = false)] public string Api { get; set; } /// /// Gets or Sets Data /// [DataMember(Name = "data", EmitDefaultValue = false)] public string Data { get; set; } /// /// Gets or Sets Disable /// [DataMember(Name = "disable", EmitDefaultValue = true)] public bool Disable { get; set; } /// /// Gets or Sets Id /// [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] public string Id { get; set; } /// /// Gets or Sets Nodes /// [DataMember(Name = "nodes", EmitDefaultValue = false)] public string Nodes { get; set; } /// /// Gets or Sets Type /// [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public string Type { get; set; } /// /// Gets or Sets ValidationDelay /// [DataMember(Name = "validation-delay", EmitDefaultValue = false)] public int ValidationDelay { 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 CreateClusterAcmePluginsRequest {\n"); sb.Append(" Api: ").Append(Api).Append("\n"); sb.Append(" Data: ").Append(Data).Append("\n"); sb.Append(" Disable: ").Append(Disable).Append("\n"); sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" Nodes: ").Append(Nodes).Append("\n"); sb.Append(" Type: ").Append(Type).Append("\n"); sb.Append(" ValidationDelay: ").Append(ValidationDelay).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; } } }