using System; using System.Text; using System.Collections; using System.Collections.Generic; using System.Runtime.Serialization; using Newtonsoft.Json; namespace IO.Swagger.Model { /// /// /// [DataContract] public class AppVersionPort { /// /// The Port to Expose your service /// /// The Port to Expose your service [DataMember(Name="port", EmitDefaultValue=false)] [JsonProperty(PropertyName = "port")] public int? Port { get; set; } /// /// Available protocols: TCP, UDP, TCP/UDP, HTTP, HTTPS, WS or WSS /// /// Available protocols: TCP, UDP, TCP/UDP, HTTP, HTTPS, WS or WSS [DataMember(Name="protocol", EmitDefaultValue=false)] [JsonProperty(PropertyName = "protocol")] public string Protocol { get; set; } /// /// If the port must be verified by our port validations /// /// If the port must be verified by our port validations [DataMember(Name="to_check", EmitDefaultValue=false)] [JsonProperty(PropertyName = "to_check")] public bool? ToCheck { get; set; } /// /// Enabling with HTTP or WS will inject a sidecar proxy that upgrades the connection with TLS /// /// Enabling with HTTP or WS will inject a sidecar proxy that upgrades the connection with TLS [DataMember(Name="tls_upgrade", EmitDefaultValue=false)] [JsonProperty(PropertyName = "tls_upgrade")] public bool? TlsUpgrade { get; set; } /// /// An optional name for the port for easier handling /// /// An optional name for the port for easier handling [DataMember(Name="name", EmitDefaultValue=false)] [JsonProperty(PropertyName = "name")] public string Name { get; set; } /// /// Get the string presentation of the object /// /// String presentation of the object public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class AppVersionPort {\n"); sb.Append(" Port: ").Append(Port).Append("\n"); sb.Append(" Protocol: ").Append(Protocol).Append("\n"); sb.Append(" ToCheck: ").Append(ToCheck).Append("\n"); sb.Append(" TlsUpgrade: ").Append(TlsUpgrade).Append("\n"); sb.Append(" Name: ").Append(Name).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); } } }