/*
* 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
{
///
/// CreateClusterMappingPciRequest
///
[DataContract(Name = "CreateClusterMappingPciRequest")]
public partial class CreateClusterMappingPciRequest : IValidatableObject
{
///
/// Initializes a new instance of the class.
///
[JsonConstructorAttribute]
protected CreateClusterMappingPciRequest() { }
///
/// Initializes a new instance of the class.
///
/// description.
/// id (required).
/// liveMigrationCapable.
/// map (required).
/// mdev.
public CreateClusterMappingPciRequest(string description = default(string), string id = default(string), bool liveMigrationCapable = default(bool), List map = default(List), bool mdev = default(bool))
{
// to ensure "id" is required (not null)
if (id == null)
{
throw new ArgumentNullException("id is a required property for CreateClusterMappingPciRequest 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 CreateClusterMappingPciRequest and cannot be null");
}
this.Map = map;
this.Description = description;
this.LiveMigrationCapable = liveMigrationCapable;
this.Mdev = mdev;
}
///
/// 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 LiveMigrationCapable
///
[DataMember(Name = "live-migration-capable", EmitDefaultValue = true)]
public bool LiveMigrationCapable { get; set; }
///
/// Gets or Sets Map
///
[DataMember(Name = "map", IsRequired = true, EmitDefaultValue = true)]
public List Map { get; set; }
///
/// Gets or Sets Mdev
///
[DataMember(Name = "mdev", EmitDefaultValue = true)]
public bool Mdev { 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 CreateClusterMappingPciRequest {\n");
sb.Append(" Description: ").Append(Description).Append("\n");
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append(" LiveMigrationCapable: ").Append(LiveMigrationCapable).Append("\n");
sb.Append(" Map: ").Append(Map).Append("\n");
sb.Append(" Mdev: ").Append(Mdev).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;
}
}
}