mirror of
https://github.com/tribufu/proxmox-sharp
synced 2026-05-06 06:47:29 +00:00
143 lines
5.3 KiB
C#
143 lines
5.3 KiB
C#
/*
|
|
* 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>
|
|
/// CreateAccessDomainsSingleSyncRequest
|
|
/// </summary>
|
|
[DataContract(Name = "CreateAccessDomainsSingleSyncRequest")]
|
|
public partial class CreateAccessDomainsSingleSyncRequest : IValidatableObject
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="CreateAccessDomainsSingleSyncRequest" /> class.
|
|
/// </summary>
|
|
[JsonConstructorAttribute]
|
|
protected CreateAccessDomainsSingleSyncRequest() { }
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="CreateAccessDomainsSingleSyncRequest" /> class.
|
|
/// </summary>
|
|
/// <param name="dryRun">dryRun.</param>
|
|
/// <param name="enableNew">enableNew (required).</param>
|
|
/// <param name="full">full (required).</param>
|
|
/// <param name="purge">purge (required).</param>
|
|
/// <param name="removeVanished">removeVanished (required).</param>
|
|
/// <param name="scope">scope (required).</param>
|
|
public CreateAccessDomainsSingleSyncRequest(bool dryRun = default(bool), bool enableNew = default(bool), bool full = default(bool), bool purge = default(bool), string removeVanished = default(string), string scope = default(string))
|
|
{
|
|
this.EnableNew = enableNew;
|
|
this.Full = full;
|
|
this.Purge = purge;
|
|
// to ensure "removeVanished" is required (not null)
|
|
if (removeVanished == null)
|
|
{
|
|
throw new ArgumentNullException("removeVanished is a required property for CreateAccessDomainsSingleSyncRequest and cannot be null");
|
|
}
|
|
this.RemoveVanished = removeVanished;
|
|
// to ensure "scope" is required (not null)
|
|
if (scope == null)
|
|
{
|
|
throw new ArgumentNullException("scope is a required property for CreateAccessDomainsSingleSyncRequest and cannot be null");
|
|
}
|
|
this.Scope = scope;
|
|
this.DryRun = dryRun;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets or Sets DryRun
|
|
/// </summary>
|
|
[DataMember(Name = "dry-run", EmitDefaultValue = true)]
|
|
public bool DryRun { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or Sets EnableNew
|
|
/// </summary>
|
|
[DataMember(Name = "enable-new", IsRequired = true, EmitDefaultValue = true)]
|
|
public bool EnableNew { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or Sets Full
|
|
/// </summary>
|
|
[DataMember(Name = "full", IsRequired = true, EmitDefaultValue = true)]
|
|
public bool Full { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or Sets Purge
|
|
/// </summary>
|
|
[DataMember(Name = "purge", IsRequired = true, EmitDefaultValue = true)]
|
|
public bool Purge { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or Sets RemoveVanished
|
|
/// </summary>
|
|
[DataMember(Name = "remove-vanished", IsRequired = true, EmitDefaultValue = true)]
|
|
public string RemoveVanished { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or Sets Scope
|
|
/// </summary>
|
|
[DataMember(Name = "scope", IsRequired = true, EmitDefaultValue = true)]
|
|
public string Scope { 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 CreateAccessDomainsSingleSyncRequest {\n");
|
|
sb.Append(" DryRun: ").Append(DryRun).Append("\n");
|
|
sb.Append(" EnableNew: ").Append(EnableNew).Append("\n");
|
|
sb.Append(" Full: ").Append(Full).Append("\n");
|
|
sb.Append(" Purge: ").Append(Purge).Append("\n");
|
|
sb.Append(" RemoveVanished: ").Append(RemoveVanished).Append("\n");
|
|
sb.Append(" Scope: ").Append(Scope).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;
|
|
}
|
|
}
|
|
|
|
}
|