using System; using System.Text; using System.Collections; using System.Collections.Generic; using System.Runtime.Serialization; using Newtonsoft.Json; namespace RadarrSharp.Models { /// /// /// [DataContract] public class ConfigHostBody { /// /// Gets or Sets BindAddress /// [DataMember(Name="bindAddress", EmitDefaultValue=false)] [JsonProperty(PropertyName = "bindAddress")] public string BindAddress { get; set; } /// /// Gets or Sets Port /// [DataMember(Name="port", EmitDefaultValue=false)] [JsonProperty(PropertyName = "port")] public decimal? Port { get; set; } /// /// Gets or Sets SslPort /// [DataMember(Name="sslPort", EmitDefaultValue=false)] [JsonProperty(PropertyName = "sslPort")] public decimal? SslPort { get; set; } /// /// Gets or Sets EnableSsl /// [DataMember(Name="enableSsl", EmitDefaultValue=false)] [JsonProperty(PropertyName = "enableSsl")] public bool? EnableSsl { get; set; } /// /// Gets or Sets LaunchBrowser /// [DataMember(Name="launchBrowser", EmitDefaultValue=false)] [JsonProperty(PropertyName = "launchBrowser")] public bool? LaunchBrowser { get; set; } /// /// Gets or Sets AuthenticationMethod /// [DataMember(Name="authenticationMethod", EmitDefaultValue=false)] [JsonProperty(PropertyName = "authenticationMethod")] public string AuthenticationMethod { get; set; } /// /// Gets or Sets AnalyticsEnabled /// [DataMember(Name="analyticsEnabled", EmitDefaultValue=false)] [JsonProperty(PropertyName = "analyticsEnabled")] public bool? AnalyticsEnabled { get; set; } /// /// Gets or Sets Username /// [DataMember(Name="username", EmitDefaultValue=false)] [JsonProperty(PropertyName = "username")] public string Username { get; set; } /// /// Gets or Sets Password /// [DataMember(Name="password", EmitDefaultValue=false)] [JsonProperty(PropertyName = "password")] public string Password { get; set; } /// /// Gets or Sets LogLevel /// [DataMember(Name="logLevel", EmitDefaultValue=false)] [JsonProperty(PropertyName = "logLevel")] public string LogLevel { get; set; } /// /// Gets or Sets ConsoleLogLevel /// [DataMember(Name="consoleLogLevel", EmitDefaultValue=false)] [JsonProperty(PropertyName = "consoleLogLevel")] public string ConsoleLogLevel { get; set; } /// /// Gets or Sets Branch /// [DataMember(Name="branch", EmitDefaultValue=false)] [JsonProperty(PropertyName = "branch")] public string Branch { get; set; } /// /// Gets or Sets ApiKey /// [DataMember(Name="apiKey", EmitDefaultValue=false)] [JsonProperty(PropertyName = "apiKey")] public string ApiKey { get; set; } /// /// Gets or Sets SslCertPath /// [DataMember(Name="sslCertPath", EmitDefaultValue=false)] [JsonProperty(PropertyName = "sslCertPath")] public string SslCertPath { get; set; } /// /// Gets or Sets SslCertPassword /// [DataMember(Name="sslCertPassword", EmitDefaultValue=false)] [JsonProperty(PropertyName = "sslCertPassword")] public string SslCertPassword { get; set; } /// /// Gets or Sets UrlBase /// [DataMember(Name="urlBase", EmitDefaultValue=false)] [JsonProperty(PropertyName = "urlBase")] public string UrlBase { get; set; } /// /// Gets or Sets UpdateAutomatically /// [DataMember(Name="updateAutomatically", EmitDefaultValue=false)] [JsonProperty(PropertyName = "updateAutomatically")] public bool? UpdateAutomatically { get; set; } /// /// Gets or Sets UpdateMechanism /// [DataMember(Name="updateMechanism", EmitDefaultValue=false)] [JsonProperty(PropertyName = "updateMechanism")] public string UpdateMechanism { get; set; } /// /// Gets or Sets UpdateScriptPath /// [DataMember(Name="updateScriptPath", EmitDefaultValue=false)] [JsonProperty(PropertyName = "updateScriptPath")] public string UpdateScriptPath { get; set; } /// /// Gets or Sets ProxyEnabled /// [DataMember(Name="proxyEnabled", EmitDefaultValue=false)] [JsonProperty(PropertyName = "proxyEnabled")] public bool? ProxyEnabled { get; set; } /// /// Gets or Sets ProxyType /// [DataMember(Name="proxyType", EmitDefaultValue=false)] [JsonProperty(PropertyName = "proxyType")] public string ProxyType { get; set; } /// /// Gets or Sets ProxyHostname /// [DataMember(Name="proxyHostname", EmitDefaultValue=false)] [JsonProperty(PropertyName = "proxyHostname")] public string ProxyHostname { get; set; } /// /// Gets or Sets ProxyPort /// [DataMember(Name="proxyPort", EmitDefaultValue=false)] [JsonProperty(PropertyName = "proxyPort")] public decimal? ProxyPort { get; set; } /// /// Gets or Sets ProxyUsername /// [DataMember(Name="proxyUsername", EmitDefaultValue=false)] [JsonProperty(PropertyName = "proxyUsername")] public string ProxyUsername { get; set; } /// /// Gets or Sets ProxyPassword /// [DataMember(Name="proxyPassword", EmitDefaultValue=false)] [JsonProperty(PropertyName = "proxyPassword")] public string ProxyPassword { get; set; } /// /// Gets or Sets ProxyBypassFilter /// [DataMember(Name="proxyBypassFilter", EmitDefaultValue=false)] [JsonProperty(PropertyName = "proxyBypassFilter")] public string ProxyBypassFilter { get; set; } /// /// Gets or Sets ProxyBypassLocalAddresses /// [DataMember(Name="proxyBypassLocalAddresses", EmitDefaultValue=false)] [JsonProperty(PropertyName = "proxyBypassLocalAddresses")] public bool? ProxyBypassLocalAddresses { get; set; } /// /// Gets or Sets CertificateValidation /// [DataMember(Name="certificateValidation", EmitDefaultValue=false)] [JsonProperty(PropertyName = "certificateValidation")] public string CertificateValidation { get; set; } /// /// Gets or Sets BackupFolder /// [DataMember(Name="backupFolder", EmitDefaultValue=false)] [JsonProperty(PropertyName = "backupFolder")] public string BackupFolder { get; set; } /// /// Gets or Sets BackupInterval /// [DataMember(Name="backupInterval", EmitDefaultValue=false)] [JsonProperty(PropertyName = "backupInterval")] public decimal? BackupInterval { get; set; } /// /// Gets or Sets BackupRetention /// [DataMember(Name="backupRetention", EmitDefaultValue=false)] [JsonProperty(PropertyName = "backupRetention")] public decimal? BackupRetention { get; set; } /// /// Gets or Sets Id /// [DataMember(Name="id", EmitDefaultValue=false)] [JsonProperty(PropertyName = "id")] public decimal? Id { get; set; } /// /// Get the string presentation of the object /// /// String presentation of the object public override string ToString() { var sb = new StringBuilder(); sb.Append("class ConfigHostBody {\n"); sb.Append(" BindAddress: ").Append(BindAddress).Append("\n"); sb.Append(" Port: ").Append(Port).Append("\n"); sb.Append(" SslPort: ").Append(SslPort).Append("\n"); sb.Append(" EnableSsl: ").Append(EnableSsl).Append("\n"); sb.Append(" LaunchBrowser: ").Append(LaunchBrowser).Append("\n"); sb.Append(" AuthenticationMethod: ").Append(AuthenticationMethod).Append("\n"); sb.Append(" AnalyticsEnabled: ").Append(AnalyticsEnabled).Append("\n"); sb.Append(" Username: ").Append(Username).Append("\n"); sb.Append(" Password: ").Append(Password).Append("\n"); sb.Append(" LogLevel: ").Append(LogLevel).Append("\n"); sb.Append(" ConsoleLogLevel: ").Append(ConsoleLogLevel).Append("\n"); sb.Append(" Branch: ").Append(Branch).Append("\n"); sb.Append(" ApiKey: ").Append(ApiKey).Append("\n"); sb.Append(" SslCertPath: ").Append(SslCertPath).Append("\n"); sb.Append(" SslCertPassword: ").Append(SslCertPassword).Append("\n"); sb.Append(" UrlBase: ").Append(UrlBase).Append("\n"); sb.Append(" UpdateAutomatically: ").Append(UpdateAutomatically).Append("\n"); sb.Append(" UpdateMechanism: ").Append(UpdateMechanism).Append("\n"); sb.Append(" UpdateScriptPath: ").Append(UpdateScriptPath).Append("\n"); sb.Append(" ProxyEnabled: ").Append(ProxyEnabled).Append("\n"); sb.Append(" ProxyType: ").Append(ProxyType).Append("\n"); sb.Append(" ProxyHostname: ").Append(ProxyHostname).Append("\n"); sb.Append(" ProxyPort: ").Append(ProxyPort).Append("\n"); sb.Append(" ProxyUsername: ").Append(ProxyUsername).Append("\n"); sb.Append(" ProxyPassword: ").Append(ProxyPassword).Append("\n"); sb.Append(" ProxyBypassFilter: ").Append(ProxyBypassFilter).Append("\n"); sb.Append(" ProxyBypassLocalAddresses: ").Append(ProxyBypassLocalAddresses).Append("\n"); sb.Append(" CertificateValidation: ").Append(CertificateValidation).Append("\n"); sb.Append(" BackupFolder: ").Append(BackupFolder).Append("\n"); sb.Append(" BackupInterval: ").Append(BackupInterval).Append("\n"); sb.Append(" BackupRetention: ").Append(BackupRetention).Append("\n"); sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append("}\n"); return sb.ToString(); } /// /// Get the JSON string presentation of the object /// /// JSON string presentation of the object public string ToJson() { return JsonConvert.SerializeObject(this, Formatting.Indented); } } }